Dear Experts, In one project, I sometimes have to reset the TAPI Service when I find network cable is disconnected and connected. I know I could get TAPI process ID in VC2005 by using EnumServicesStatusEx function. But because my code is in VC2000, I have to get it in VC2000. I find a code snippet which use CreateToolhelp32Snapshot and Process32Next to find process IDs in VC2000. But it gives me several svchost.exe which only one belongs to TAPI service. My question is : how I could find TAPI service Process ID in VC2000. Regards Mahdi
DSPCottage
Posts
-
How to find the Process ID of TAPI Service in windows by using VC2000 -
Unicode CString and fopen problemThanks , It works.
-
Unicode CString and fopen problemThanks , it works perfect.
-
Unicode CString and fopen problemDear Experts Previously I could open a file by using following code snippet in Visual C++ 6 : CString fileName = "c:\\1.bin"; fopen(fileName,"wb"); But now I switched to visual C++ 2005 and activate unicode character set, but above code does not work. Please give a code snippet that I can use to feed a CString as a array of TCHAR to fopen function. Thanks Mahdi
-
about MBCS and unicode in Visual C++ 2005Dear all I have a project which can be both compiled with VC6 and VC 2005 When I compile it by VC6, the content of LPCSTR is one byte per character but when I compile the project under VC2005 , I find that each character of LPCSTR is consist of 2 bytes which first byte contains the character data and second byte contains a "0" in it. thus I cant show the data properly as I want what happened under VC2005 could you please help me how I can overcome this problem. Is is about unicode and MCBS How can I disable it under VC2005 Could you please send me an article for this problem. I want to become more familiar with UNICODE thanks in advance Mahdi
-
Call Stack in Visual C++ 2005thnax a lot
-
Call Stack in Visual C++ 2005Dear All I have one project in VC2005. In has mose run time error. But I dont know how to use call Stack in VC2005. In VC2000, a Call Stack item exists But in VC2005 in "view->Other Windows " there is no Call Stack Could you please help me for this problem. Regards Mahdi
-
about class wizard on Visual C 2005thanks It was really helpfull.
-
about class wizard on Visual C 2005Dear All I want to create the OnDestroy command in VC2005. But because there is no ClassWizard in it, I dont know how to do this could u please help me? Regards Monhi
-
about vc 2005Dear all I created a console application in vc 2005. but when I transfer the exe program to another computer and click on it to execute I get following error : " The application has failed to start because the application configuration is incorrect reinstalling the application may fix this problem. " could you please let me know what is the reason of this error. regards Mahdi
-
about dlls in visual C ++ 6 and Visual C++ 2005Thank you mr nave you are my abroad friend. Hope you to be successfull. Regards Mahdi
-
about dlls in visual C ++ 6 and Visual C++ 2005thank you mr Nave I found that I didnt export functions of dll. But i dont know what dependency walker is. whould you please let me know about it. I download a tiny software to see the export list of the dll. Regards Mahdi
-
about dlls in visual C ++ 6 and Visual C++ 2005Dear all I have two programs: 1. the source code of a dll suppose that a.dll 2. the source code of program which uses a.dll suppose b.exe. both of them were written in vc6 IDE, and both are operational now I compile the a.dll in visual C++ 2005. but when I want to use a.dll with b.exe , when I call GetProcAddress to retrieve the address of functions , Null value is returned. I dont know how to overcome this problem. If u have any idea please let me know. I must say that a.dll should be backward compatible , thus it is not possible to change b.exe program. Regards Mahdi
-
managing database queriesDear All in a multi threaded system, I want to access the sql server 2000 data base in 15 separate threads. But now, when the connection of data base is lost , threads find it separately and they can not make other threads aware of this situation, also it is not possible to organize and manage the data base systematically. now I want to manage my data base with better mechanisems. I'd like to use design patterns for this purpose. But I didn't find any useful information in this regard yet. May you please let me know any information in this regard. Thanks in advance Mahdi
-
Converting CString to char*May you please give me an article about UNICODE ? Regards Mahdi
-
Converting CString to char*But it appears that VC2005 doesn't support (LPSTR) or (LPCTSTR) operator. isn't it? Regards
-
Converting CString to char*Visual C++ 2005 doesn't support (LPCTSTR) cast operator. thus I need an interface to change a CString object to a char* exactly now I am porting an project from VC6 to VC2005 and it is my problem Regards Mahdi
-
Converting CString to char*Thanks It was great
-
Converting CString to char*Dear All In visual C++ 2005 I want to change a CString file to char* I used following code But fopen needs a char* for its first parameter Please let me know what to do Regards char buffer[MAX_PATH]; GetModuleFileName(NULL,(LPWCH)buffer,MAX_PATH); CString path = buffer; path = path.Left(path.ReverseFind('\\')+1); path += "result.mp3"; f = fopen( path , "wb");
-
Loading DLLs more than onceThe DLL which I want to use is a mp3 compressor which only compresser the sound of a channel. But I need to do the same job for 15 channels at least. Thus it was neccessary to load it more than 15 times.