I'm trying to use up to 3 dll's in an vc6 application. On the end-user's system, not all the dll's will necessarily be installed. I'm using LoadLibrary so the program can proceed as long as at...
I have created a windows service using visual C++.
Kindly tell me how do i register its .exe file as windows service.
What command will be used and what steps ll be needed.
reply so...
Hi,
I use this method to convert CString to char*
CString data;
const char* data_char = (LPCTSTR) data;
but this method works only if i use const char*. This means i cant manipulate ...
Hi Experts,
typedef bool (*LPFunctionType)(BSTR);
HINSTANCE hInstLib;
LPFunctionType functionptr=NULL;
LoadLibrary("XMLTest.dll");
BSTR *bs=SysAllocString(L"SanityMonitor warnin...
Ah hello.
Simple problem: I need to be able to get the path to the desktop and the "My Documents" folder for the current user, regardless of the operating system.
In XP and 2000, the Des...
Currently I have an application that runs on our network. When someone logs on to the network it checks there system and gets the pc name. I would like to also get the IP address of that syste...
Hello,
I get a runtime error "R6025 Pure virtual function call" from my application. This error appears only in
certain Windows 2000 machine and works fine in rest of the PCs(which include...
I'm using C++6.0 and DirectX 7.0 with the SDK.
I'm trying to do this:
hRet=DirectDrawCreateEx(NULL, (LPVOID*)&lpDD,IID_IDirectDraw7,NULL);
it seems the compiler can not find IID_IDirect...
I need to have three radio buttons and get the ID of the one selected upon the user clicking OK. I've read that I need to group the three radio buttons together and create a member variable, w...
I have a function that returns a wchar_t* and need to convert this to a char* to use as an argument to another function. Any help appreciated.
Hi,
I have an MFC SDI application and I want to call it from command line by passing some arguments to it, like the filepath for the application to open it.
I haven't find any material o...
Trying to connect to MySQL from Visual C++ 6 (Windows MFC Application)
Hi,
I'm trying to connect to a MySQL database from C++. First I downloaded mysql++-1.7.28.tar.gz from here --> http...
I'm trying to use AVIStreamOpenFromFile
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_avistreamopenfromfile.asp
and its second argument is LPCTSTR sz...
Hello
i have a common dll resource which has a property page dialog box.I added a new edit box to this dialog box.Now this dialog is loaded into a property sheet from the applicatio...
What's a callback function in VC++?
Thank you!
Hi Experts!
My task is to get rid of the caption buttons ie: min, max, and close. I need to still have the window menu (formerly the system menu). I cannot come up with any way of doing thi...
Hi there,
I am looking for a routine to have my program sleep for 10 or 100 microsecnds without using full processor use. I saw some good topics already posted but they use full proce...
Hi all,
I have 1 range of IP addresses ex 192.168.98.1 .. 192.168.99.10.
I want to know how many addresses in this range. Do you know a function to convert a IP address to integer in Visual ...
How do I use regtlib.exe to unregister a type library?
Thanks
Hi guys,
Got this warning:
warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
Want to tidy it up, here's the line affected:
bool bResult = pDl...
I have a dialog box where the user enters a string for a directory name.
I need to check to see if the string is valid for a windows directory before it is created, such as it is not past the...
Dear All,
I am working on image processing alogorithm.
I wanted to fill the sequence of numbers in cvArr or cvMat data structure.
Please let me know what is the possible solution for th...
I am trying to tokenize a CString and was using VC++6 at home while at work I am using VC++5. I spent a lot of time at home coming up with this algorithm to tokenize a CString that looks like ...
Hello!
I have a file on hard disk and file has 2 numbers separated by "," .I want to read the numbers from the file using CFile and store the numbers in 2 different int variables.
I am not ...
My MFC application software *.exe was developed in Visual 2005 MFC based applicaiton; it does not use ATL. It starts fine on system that has visual studio installed; On a target XP systems wit...