Software Development Network Logo
  • VS Team System
  • .NET Development
  • Windows Forms
  • IE Development
  • Game Technologies
  • Audio and Video
  • SharePoint Products
  • Windows Vista
  • Smart Devicet
  • Visual Studio
  • SQL Server
  • Visual C++
  • Microsoft ISV
  • Visual C#
  • Visual Basic

Software Development Network >> Visual C++

Visual C++

New Question

Sending keystrokes to other window
Unhandled exception
Passing C++ objects from managed C++ to unmanaged C++ and vice versa
Is there any good tool which can easily get the call graph of one project of vc? Please give the steps to do that.
debugger error
error in vc++
Pointer not working
Help button get chm instead of hlp
Please help with EnumWindow function
dll search order

Top Answerers

Larry3228
pc_bond
cool714
Chidu
Pavan Contractor
Ravencraft
pojee386
prasoot
gafrank
dvidal
Pervasive Software Inc.
Only Title

Answer Questions

  • Tigerwood2006 self-made hashtable extremely slow compiled with VC2005

    Hi, I have a problem, and at the point I'm clueless what to do. The problem is, my app becomes extremely slow when compiled with VC2005. Application runs in half hour when compiled with VC6 or VC7, but now, compiled with VC8 it seems to take several days. I'm having this homebrew hashtable implementatation because of portablility reasons, whose probes seems to consume most of the cpu -time according to profiler. It takes 40% of cpu, while normally its something like 1%. But because whole execution time jumps several hundred percents, this alonr doesn't explain it all. And weird enough, simple little timer app I made to test the hashtable runs just fine. I'd be happy to stick with VC7, but I need to have 64bits becouse of memory consumptio ...Show All

  • Steev Remove a given value from a list

    Hello all: Is this solution correct void remove(Node **node, int v) { while (*node) { if ((*node)->value = v) { Node *tmp = *node; *node = (*node)->next; free(tmp); } else node = &(*node)->next; } } If this code is correct, I have the following question: why can we just free(tmp) without making the collection between the previous node of tmp with the node after tmp Thank you Yes, it is correct. As for your subsequent question: if you don't connect the previous node with the node after tmp you will end up having previous node having a 'next' pointer that points to freed memory instead of pointing to the next node ...Show All

  • wazimu VS2K5 SP1 Beta bugs!!!???

    I installed the beta to get around a merge problem with TFS and it worked. However, I create the installer for our product on that machine. When I released daily installer the code started breaking because the actual code was compiled with RTM VS2K5(this is expected) However, our previously released products running on MFC 8.0 all started breaking after installing the daily build. Why would already installed products on a system break if a product installed with the beta MFC merge modules start to break Is this what will happen when the SP ships And more importantly, how do I scrape the unwanted SP1 Beta DLLs from these now "infected" test machines Thanks, This bug is already reported on connect.micro ...Show All

  • amendez sytem invaded?

    For the past couple days ever since downloading MSVC++ Express Edition, we have been getting warnings when we try to log into hotmail, that the connection may be being monitored... I have no reason to think that it is from this MSVC++ software but when I log into this forum I have to use a hotmail account to log in.. We also have the K9 web-protection software installed and it has been saying that someone used Shareaza, when we do not have any peer to peer software installed on our machine. How is this possible Is there a way to fix it, if someone is breaking in We use AVG for av software in conjunction with ZoneAlarm. Any suggestions Chris Sentman I seriously doubt this has anything to do ...Show All

  • jacobsologub Connectiong Remote Sql server in vc++ 6.0

    Hi All, I'm new user of vc++ 6.0 and sql server express as the database. Both the development and the database are in same machine as of now. i use Ado and connect the database using the connection string as "Driver={SQL Server};Server=AMJATHKHAN\\SQLEXPRESS;Database=TestDB;Uid=;Pwd=;" its working fine in my pc. when i try to run the same executable in some other pc in the same lan it wont work.. the sql server express is accessible to all machine in the LAN. then wat is the way to connect the remote sql server using vc++ plz help me. With Regards Amjath Hi All, when i remove the Ado from my application, even it wont get connected to the db. -Amjath I would ...Show All

  • pinoyz I met a weird thing when using fwrite() and fputc()

    I am using VS 2005. In a project when I was trying to write some unsigned char into a file, I used fwrite() and fputc(). But I found whenever I tried to write 0x0a, fwrite() function automaticly wrote 0x0d before 0x0a. So I wrote a small test to test it. Here is it: FILE* file; unsigned char p = 0x0a; long offset = ftell(file); // here the offset = 0; fwrite(*p,1,1,file); offset = ftell(file); // after this, the offset = 2. and in the file I // found 0x0d and 0x0a was written. I can't understand. I just want to write byte by byte, automatically inserted byte 0x0d will cause problems in my project. can someone tell me what is the cause and how to avoid the unwanted byte ...Show All

  • ahmedilyas Problem usage CImage and Clipboard

    When I do this, I got ASSERT inside CImage::ReleaseDC(), What's wrong HBITMAP hBitmap = (HBITMAP)GetClipboardData(CF_BITMAP); CImage m_CImage.Attach( hBitmap ); CWnd::OnPaint() { CPaintDc dc(this); CRect rect; GetClientRect( &rect ); m_CImage.Draw( dc.m_hDC, rect ); //ASSERT inside! } Thanks gdrivas. I fixed this problem- Detach has never called. michot hi, You should propably provide more code, so we would be more accurate of what is happening. There are many cases of the error's reason: - first if the program executes two times the 'm_CImage.Attach' without execute the 'm_CImage.Detach', assert occurs. So you must be ensure that 'Attach' 'Detach' exeuted in pairs. - Then provid ...Show All

  • tribal Multiple inheritance and function overloading

    class A { public : int f() { cout<<"A::f()"; } }; class B { public : int f(int i) { cout<<"B::f(int)"; } }; class C : public A, public B { public : int g() { f(); } }; Why does the above program give following error error C2385: ambiguous access of 'f' in 'C' error C3861: 'f': identifier not found, even with argument-dependent lookup Where is the concept of function overloading and method signature go PS: The above program code compiles if you give A::f() inside function g() Right .. so in this case function signature is different int f(int) ; and int f() ; so when u call f() it should be ideally be invoking int f() i.e. without an ...Show All

  • 20001801 call function in a C# class from a project created in Visual Studio C++

    Hello I have created a project in C++ an added an other project to the solution. This is a C# class library. What i want to do is to call a function in my C# library from my C++ code. Does anyone know how to do this I'm rather new at programming in C++. I have added a reference to the C# class library, but now I'm blank. Don't know where to go next. Are there a kind person out there that can help me with this Regars, Thore I'm not a C++ guru! Thats a fact! I have tlb file that I import into my C++ project(Visual Studio 2005). The tlb file is created in C# and here are some information: - namespace is JTTestAll - public class is called JTTest. - the function I want to call f ...Show All

  • el_Fede strange output with atan2.....what does it mean?

    my line of code is: phi=atan2(n,e.x)+atan2(e.z,e.y); and it returns this: 0012FCE43.14159 does anyone know what this output is thanks! -sharyl i found the problem: i was writing file_op << phi << file_op << ........; instead of: file_op << phi ; file_op << ........; thanks for all the help! Yep. That'll do it. operator<< on objects tend to output their memory addresses. Since file_op is on the stack, you got its address. yeah, i know......i was thinking it was some type of notation signifier.....like scientific or somthing, but i couldn't think of what FCE would be short for......and if you notice PI shows up ...Show All

  • achalk A Missing Include?

    Dear Collective Wisdom, I am a C/C++ newbie using Visual C++ 2005 Windows Forms to try to compile a C code project developed (by someone else) in MacIntosh Project Builder. A sample of some of the error messages I am receiving are as follows: Error 7 error C2065: 'FILE' : undeclared identifier c:\FNSimulator\ReadLayup.cpp 82 Error 8 error C2065: 'inFilePtr' : undeclared identifier c:\FNSimulator\ReadLayup.cpp 82 Error 9 error C3861: 'sprintf': identifier not found c:\FNSimulator\ReadLayup.cpp 85 Error 10 error C3861: 'fopen': identifier not found c:\FNSimulator\ReadLayup.cpp 86 Error 11 error C2065: 'cout' : undeclared identifier c:\FNSimulator\ReadLayup.cpp 88 Error 12 error C3861: 'calloc': identifier not found c:\FN ...Show All

  • RMORAR About obj file for VC8

    I use VC8 lately.It's build some obj files for a project,but I don't know what's the obj file type.It's not COFF file and not OMF file. I use new dumpbin tool to check these obj file, the report show:"ANONYMOUS OBJECT". Who know what's the file type Pleaes help,thanks... You probably specified /GL compiler flag, i.e. you are using link-time code generation. In that case object file contains internal representation of your program, something resembling abstract syntax tree. That format is not documented anywhere and there is no guarantee it will not change in the next VS version. Eugene Sarath. wrote: From MSDN LINK accepts .obj files that are either Common Objec ...Show All

  • tee_user5 msvcr80.dll Problem

    Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin Norton WinDoctor is a Symantec product. From my expiriences with Symantec products I wouldn't trust it. Just my two cents. If your application works as expected then the owenrs of WinDoctor might have more details. Thanks, Ayman Shoukry VC++ Team hello delta579! You are a genius!I have been trying for months to locate the s ...Show All

  • yousaid CStringT::Tokenize

    The behaviour of Tokenize has changed between MFC 7 and MFC 8 and has broken some of our existing code. The change has to do with passing in an empty ("") delimiter string. In MFC 7 Tokenize would return the original string AND adjust iStart so it was possible to use it in a while loop like so: CString strDelimiters = "" ; int iStart = 0; CString strCurrentValue = strText.Tokenize( strDelimiters , iStart); while (strCurrentValue != "" ) { //DO SOME STUFF HERE strCurrentValue = strText.Tokenize(strDelimiters, iStart); } With MFC 8 iStart is never adjusted so subsequent calls to Tokenize always returns the original string rather than returning an empty string lik ...Show All

  • Carl Daniel Ways to obtain module certificate

    Hello. How can I obtain signed module certificate and how many ways there are for this purpose In MSDN samples I found only verification example here http://msdn2.microsoft.com/en-us/library/aa382384.aspx . But I need to obtain certificate context pointer. Thanks. Please use this forum for C++ language issues only. Security programming questions can be asked here: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.platformsdk.security&lang=en&cr=US Thanks, Brian OTP ...Show All

212223242526272829303132333435363738

©2008 Software Development Network

powered by phorum