Answer Questions
Derrick_Jacobs LNK1102, Linker running out of memory
Hi, I get a LNK1102 error when trying to build a managed code wrapper library that has over 2000 modules. I have been told that I have hit a 2G limit on process size, and that more RAM or disc space will not help. Is there some combination of compiler and/or linker switches that will minimize the memory "footprint" and allow the library to build Which version requires less process memory; Debug or Release Do you have any o ...Show All
alexvi how to stop an application like a messagebox does
hi there! i hope this is the right place for this post. i have the following problem: i am writing an adobe acrobat plugin in c++ with the visual studio.net 2003. i have another application with which i send data per mailslot to my plugin. the plugin displays a messagebox which is to be clicked when data is sent from the other application. if i try to implement the plugin without the messagebox the acrobat hangs because the plugin looks perm ...Show All
LearnToRock File Input/Output Question
All, I have a text file with following data in it.. Item Id Item Name Rev Qty 11588851 NUT "PUSH-IN" WITH PAD ()->004 0->4 11609684 NUT - METRIC ()->001 0->2 11610092 SCREW ASM-FLAT WA & PAN HEAD TAP ()->001 0->4 15267977 MOLDING ASM-R/CMPT LID LWR ()->002 0->1 I need to read this da ...Show All
ayacenda parse the login name
I have login name like domain \username, I tried to use strtok to parse it. However, strtok can not recognize "\". For example, char ustring[] = "domain\username"; sLogin = strtok(ustring, "\\" ); sDomain = sLogin; while( sLogin != NULL ) { sUser = sLogin; sLogin = strtok( NULL, "\\" ); } Output both sDomain and sUser are domainusername However, if I change ustring to the following by adding one more ...Show All
Tejoo Sorted
I am using VC++ Beta 2, with Windows Forms. I want to run a process in the background, leaving the UI responsive, and also to update a text box on the UI with interim progress data from my process. I have found a way to initiate a worker thread on the NET - as below. using namespace System; using namespace System::Threading; public ref class ThreadExample { public : static void ThreadProc() { //Do stuf ...Show All
Dennis Cheng _ MSFT Char* dynamic allocation??
Theoretically, after use dynamic allocation we should use "delete" as below. However, I got a error message like this: **************************************** Debug Assertion Failed! Program : C:/hello.exe File: dbgdel.cpp Line: 47 Expression:_BLOCK_TYPE_IS_VALID(pHEAD->nBlockUse) **************************************** int main(){ char* s1 = new char[30]; char* s2 = new char[30]; char com[40]; cin.getline (com,40); while(strcm ...Show All
mr_humphrey 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
PaulFnNY Error PRJ0019 : A tool returned an error code from "Performing registration" ProjectName
Hi, I'm facing one problem when compiling vc6 project into vc8 compiler. Error PRJ0019 : A tool returned an error code from "Performing registration" PantherConfig I have gone thru a number of links providing solution for this but couldn't get correct solution. I think it is having problem in registration dll but not sure. In Build log it is telling that "Cannot open the specified file testerinfoerrors.err for reading" while this file is exi ...Show All
SquareDanceSteve __gc* equivalent in VC++ 2005
I understand that the equivalent for __gc in VC++ 2005 is ref keyword. Similarly can anyone update me on the equivalent for __gc* in VC++ 2005. Thanks in advance Ok, the C++/CLI equivalent for what you did would be :- void GetIntReturn(int% ivalue) { ivalue = 10; } MadhuSri wrote: Sivakumar, Thanks for your response. I had actually tried with this option earlier. But then i did not get the ...Show All
PioM Problem with x64 hello world app...
Hi all, I've been trying to port a 32bit app to 64bit these past days, and finally got the thing to compile and link after a long struggle. needless to say, the thing refuses to run on my x64 XP machine, it's missing a number of libraries (assemblies, or whatever the term en vogue these days may be. God, does anybody remember the days when code was just code Sigh.) Anyhow.... I thus am now trying to create the simplest of all apps, a hello world ...Show All
Haider Sabri Converting System::String to Int32 and back again in hex in C++
OK, I have a simple question: I have a window where a user can enter a hex value, like 10BF00D1. Another one where the user can enter a pure binary number like 1000011101101001. I want to grab the String and put the data into an integer, manipulate it and turn the result back into a String. How do I do this with the managed System::String class in Visual C++ 2005 It was easy to do back in the "C" world, why is it so hard to find the ...Show All
Kev Matthews Parallel port low-level access
Hi guys, I need to play with the data pins of LPT1. Correct me if I'm wrong, but I believe that the best way to do this is with DeviceIoControl. I have found a snipet of code in which the dwIoControlCode parameter of DeviceIoControl is IOCTL_PP_WRITE_DATA, but this value does not seem to be defined in standard VC6 includes, nor in the 2003 Platform SDK. Searches on MSDN, MSN and Google return no helpfull hits. Could it be defined in the ...Show All
jimc5240 malloc error in C
>c:\s.t>cl /MD /GS- a.c >Microsoft (R) C/C++ Optimizing Compiler Version 14.00.40310.41 for AMD64 >Copyright (C) Microsoft Corporation. All rights reserved. > > x.c > Microsoft (R) Incremental Linker Version 8.00.40310.39 > Copyright (C) Microsoft Corporation. All rights reserved. > > /out:x.exe > a.obj > > T:\s.t>x > 3000000000 0 > > c:\second.try>type a.c > // cl /MD /GS- > #include&l ...Show All
jjoravec Compiling bug?
alright, now i get just another error. its very weird. it doesnt matter if i build on the VS2005 prof edition, or the express edition. anyway... public ref class CTree { private : ArrayList^ _TreeNodes; public : CTree() {} void AddTreeNode(VCNode^ Node){ TreeNodes->Add(Node); } void Repaint(TreeView^ Tree){ for ( int i = 0; i <= _TreeNodes->Items->Count; i++){ if (_TreeNodes->I ...Show All
Pascal Hoffmann Platform SDK & MS Visual C++ 6.0 compile errors
Hi, I'm running WinXP home O/S and developing an application using Visual C++ 6.0 (Enterprise Edition, SP6). I want to use Windows Sockets 2. My resources recommend using the getaddrinfo () function but, having included the relevant Winsock header/s & linking to the appropriate DLLs (see code below) I was getting compile errors indicating that addrinfo struct was unknown. After some cursory web research I came to the conclusion that ...Show All
