Answer Questions
Asal Getting Process info in UNICODE
Hi I am unable to enumerate process in unicode build what code should i use for enumerating process info Currently I m unable to get the info with this code, if i run without UNICODE its working perfectly FEnumProcesses = (PFEnumProcesses)::GetProcAddress(PSAPI,( LPCSTR )_T("EnumProcesses")); FEnumProcesses always NULL Regards See my reply to your other post: http://forums.microsoft.com/MSDN/ShowPost.aspx P ...Show All
crystal report printing problem aspell compilation problems
Hi, I tried to post on the forum but it kept coming up with an internal error so i was wondering if you could help me with the following:I have recently been trying to compile aspell (a spell checker written in c and c++) in visual studio .NET (2003) which has taken forever but i managed to get it to compile a dll now. When i come to add this dll file into another project which will be using the methods from this dll it keeps giving ...Show All
Manik Bambha BUG; isalnum - asserts in debug build
If you try (using VS2005) isalnum('£') then you get an assert. The problem lies in '£' being cast to an int -93. This is then cast to an unsigned and checked to see if it is withing 0 to 255. As -93 cast to an unsigned will give a huge number, we then get an assert. Andy Cooper // I'll put this down to a character set GOTCHA, as it will probably catch out non-US applications Yeah, that wa ...Show All
Flavious Microsoft COM Components on 64 bit ?
I tried to port my application over to 64 bit. I was unable to port the code that used the standard Microsoft Data Grid Control (6.0) or any other microsoft COM component while running on 64 bit. I did not get any compiler errors, just at run time i got the Debug Assert Error... Can we not use any of the MS COM Components for developing apps on 64 bit Thanks I'm on it. I suspect there is not (as there is no 64bit version of VB6), ...Show All
Henry Hahn - MSFT MFC extension DLL project with /clr option causes link error on _DllMain
I get link errors mfcs80ud.lib(dllmodul.obj) : error LNK2005: __pRawDllMain already defined in DllMain.obj mfcs80ud.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in DllMain.obj The project options are MFC extension DLL /clr option (except the source file with my DllMain implementation) UNICODE character set This looks like a bug in wizard generate code. If you are interest ...Show All
nark Building after a Rebuild
I have a solution with 10 projects. I do a Build | Rebuild Solution. All 10 projects build with no errors. To make sure everything is fine, I do a Build | Build Solution. The IDE now builds again 3 more projects. What is going on How can the IDE still think it has to build anything once I do a Rebuild Solution One of the projects is a static .lib built as managed code and the other 9 are class assemblies. How ...Show All
Helen999888 OpenFileDialog
I have this code that I want to put in my project but I do not know exactly where to put it or how to complete it, if someone could please help me with this CommonDialog.Flags = OFN_FILEMUSTEXIST + OFN_HIDEREADONLY + OFN_ALLOWMULTISELECT CommonDialog.DialogTitle = "Select Map" CommonDialog.Filter = "Map Files (*.map)|*.map|All Files(*.*)|*.*" CommonDialog.FilterIndex = 2 CommonDialog.CancelError = True CommonDialog.Action = ...Show All
GlennF Please HElp With LPCWSTR
Hi.. Belive me when i say that i looked all over the internet for this and no clearifing result.. i try to use mciSendString function to play a file.. probem is that it has parameter LPCWSTR.. :(( .. i use WIN32 console application.. so i must read the path from the console.. CODE: int _tmain(int argc, _TCHAR* argv[]) { int error=0; wstring path; wchar_t* str2=L"play MediaFile"; error=mciSendString(path.c_str(),NULL, 0, NU ...Show All
ruben_ruvalcaba_camba Exposing the Methods from a dll to be used in other applications....
Hello Everyone, I have a code which is made using .NET clr library.....I need to expose some functions from there to use in some other project, according to me I'm exposing in the .dll but when I use it as a refrence I dont see anything in the other project... Thats what exactly I'm doing....there are two scenarios related with this: If I do .... public ref class Z : public something { public : void TestMethod() } And ...Show All
Pedro Gomes Intrinsic available for reading CPU flags
Hi. I'm looking for intrinsics that allow me to read CPU flags, especially the carry flag would be important to me. I'm writng x64 application so I have no possibility to use the inline assembler therefor. I would need the flag register to check wheter a value assigned to an unsigned __int64 caused an overflow. Thanks in advance, Trenor Hi. There is no exception problem. I meant an addition to an __int64 regis ...Show All
ghoffer What happened to my thread?
I had a question about canceling blocking Winsock calls on a thread or socket... where did my thread go I do not know, but may be one of the moderators thought it is of topic (and it is). Just use one of the msdn nntp forum to get an answer. Like http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.networks&lang=en&cr=US Or one of the others here: http://msdn.micros ...Show All
ahives How do use conventional C++ Code with Visual C++
Goodday I cannot seem to create any programs with Visual C++ I am not getting anywhere the only program that works is Hello World: #include <iostream> using namespace std; int main() { cout<< "Hello World\n"; return 0; } Not even the test win32 application want to run and i did everything like you explained Please Help Peder Really Because for other hundreds of thousand of programm ...Show All
John Taylor why does modifying a dll requires to rebuild the client application
suppose anybody links a DLL to its client application, and then builds the client application. then he modifies the dll source code a little bit. Then if he tries to run the client exe again, he gets a linker error..why is it so the dll is explicitly linked. This is not accurate at all! This only occurs if you are exporting virtual or pure classes from within a DLL and you change the signature of those classes (the vtbl layout), i ...Show All
DNA123 Can I write a file longer than 2gb on ntfs disk using fputc etc. in VC++ 2003?
Can I write a file longer than 2gb on ntfs disk using fputc etc. in VC++ 2003 I have created AVI files larger than 2gb on XP-ntfs disk but none of the media programs (WMplayer. VirtualDub) can read them. Any suggestions where to start looking for the problem. Thanks, RON C It turns out that the problem is really with the AVI format. There is a work around that I'm trying to understand. Thanks for all of the help. ...Show All
Jin17 Problem to delete unmanaged object
Hello, I would like to know why I'm unable to delete an unmanaged object : Here is the code : public ref class SpeGui : public System::Windows::Forms::Form { private : String^ m_sCompassPort; int m_nCompassBaudRate; int m_nCompassDataBits; int m_nCompassStopBits; int m_nCompassParity; int m_nCompassRefreshPeriod; int m_nCompassAccuracy; PI_DigitalCompass * m_pThCompass; MyCom ...Show All
