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

Software Development Network >> Visual C++

Visual C++

New Question

Problem in invoking CreateProcess API
Errors in Source File
Why I can't complie below code in VS2005
Find In Files & Code Comments
unresolved external symbol
PSDK/calc-sample, please.
CAtlHttpClient Navigate Failing in SOAP Call
VC++ 2005 redistributable
CList and template
Size of the dialog box changes with resolution of the system running it.

Top Answerers

sunny123
EvilOneSD
Paul Shmakov
Mitesh Shah923
LTD
LuckyL
Margotta
tshah21
Tej62007
FHJJr
sitemap
Only Title

Answer Questions

  • Veo Binary Reading from a file

    Interesting! //Convert 64bits of raw binary data in a character array to a 64-bit unsigned integer // //data: array containing the required data //index: index into the array that the integer data starts //returns: the converted integer value starting at index // unsigned long long CharArray2Int64(char *data, int index) { return *(reinterpret_cast<unsigned long long *>(data+index)); } Sorry about this but could you explain again, in caveman pictographs, what reinterpret_cast does James ================================================================= What I am trying to do is to give each possibility of 64 bit a unique reference number. And the best way to do that is convert every 64 bit into ...Show All

  • NetPochi Bitmap pixel interpolation

    Hello, I am making small 24bpp bitmap images (say, 20x20 pixels). I use the lockbits and all that to do it because it is faster. After I amke the image I display it in a picture box, the pixels are not solid colours...they interploate into one another which I guess is to smooth out larger images and make them look better. But I actually want fully pixelated images with no interpolation. If I save the image and look at it in paint instead, the image IS pixelated and there is no interpolation, no blending. So what is going on here How do I get the picture box to display the small image fully pixelated Thanks a lot! Joe This code would help you CDC* pDC = GetDC(); CBitmap bitmap; ...Show All

  • chris fitzmartin Getting garbage setting dialog box text

    Hi Folks; I'm trying to set the text of a dialog box with SetDlgItemText. As an example I'm trying: SetDlgItemText(hwnd, IDC_F1, "Some text"); where IDC_F1 is defined as the ID for an edit box. What I'm getting is just garbage and I thought maybe it was my font but I've set it do Courier New, size 8 which I thought was pretty standard. Maybe someone could shed some light on my sitation. Yes, of course, that's a good point. But just want to point that CString is also a template class and is not MFC specific (though it's exported from MFCXX.dll). Marius Bancila wrote: Yes, of course, that's a good point. But just want to point that CString is also a template class and is not MFC specific (though it's ex ...Show All

  • Zokkan Windows forms help

    Hello everybody i wonder if you can fill a hole in my understanding of programming windows. I am trying to develop a very basic windows forms application. I have a class called class1 and another called game. It is my understanding that the autogenerated form1.h is also a class. Maybe this is because i don't understand. Anyway from game i can declare a pointer of type class1 and access class1's data members, functions etc from a function inside game. I can also declare a pointer of type form1. However when i come to access form1's data members using this pointer it won't let me alter them it just says: error C2227: left of '->richtextbox1' must point to class/struct/union/generic typ Here is the code: //game.h #pragma once cla ...Show All

  • Softwhere How can I check security vulnerabilities with VC8

    I am developing C++ program with VC8. I know VC8 can check security vulnerablitities. So could someone tell me how can I do that. Is there any additional tool can do that job either Buffer overflow checking (/GS flag) is enabled by default under VS 2005. /RTCsu gives you extra runtime error checking. Visual Studio 2005, Team System edition, can also do static analysis of programs to warn you about vulnerabilities during compile time. The menu item is Build:Project Only:Run Code Analysis (/analyze flag). As an example, it warns on the following: void test( char * src) { char dst[10]; strcpy( dst, src ); } I don't know what you mean, that VC8 can check ...Show All

  • Bo Yu msvcr80d.dll not found

    I've created a simple Win32 console application. When I try to debug it, I get the message:  "This application has failed to start because MSVCR80D.dll was not found. Re-installing the application may fix the problem." The Release version runs fine. Any idea as to what the problem could be Thanks, Jonny OK. I had the same problem with the Express Beta, now I see it was not fixed in the released version. The bug is very simple: the manifest resource file "Debug\xyz.exe.embed.manifest.res" is generated BEFORE its source file. Just check the build log. Removing the .res file and rebuilding cures the problem. PS. I wonder if building on a NTFS vs. FAT partition affects this. ...Show All

  • Doraemon_1 UserControl with an ArrayList property raises an editor error.

    Hello, Visual C++ .NET 2005 raises an error in the form editor using a UserControl that has an ArrayList property on it. This doesn't happen in C#.   The error message is: One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Either VCProject or VCCodeModel is not ready yet. Please close designer and try again. Hide      at Microsoft.VisualC.CppCodeParser.Parse(TextReader codeStream) at System.CodeDom.Compiler.CodeDomProvider.Parse(TextReader codeStream) at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get ...Show All

  • James Tow tempereture control program in c language

    can any body please specify how to write a program for tempereture control in c language Try to use WMI SDK, especially Win32_TemperatureProbe hope it helps rioc hello Re: tempereture control program in c language I am wondering what is temperature control program, why would you need it which scenario will it been used regards, rico Its a program that displays information such as the internal temperature of your computer's hardware. ...Show All

  • FinallyInSeattle static const array of CString

    Hi, I've a problem with an initialization. I would like to have in my class an array like this: static const CString rgszColumns[26]; And I would like to initialize it in my costructor: Myclass::Myclass() { const rgszColumns[] = { "aaa", "bbb", "ccc" ....}; } why this code doesn't works A possible solution is:       Myclass::rgszColumns[ k ]   In this case rgszColumns has to be declared as public static member. hi, static members are initialized outiside the member functions. const CString Myclass:: rgszColumns[] = { "aaa", "bbb", "ccc" ....}; do this outside con ...Show All

  • ASV Ravi Kumar DLL build fails with C2039 about MS includes

    How to prevent a C2039 error: Error 2 error C2039: 'Enable3dControls' : is not a member of 'CWinApp' C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include\afxwin2.inl 1072 when building a DLL when compiling stdafx.cpp for release Project is a C++ Win32 Console DLL. Debug build works fine because the _DEBUG symbol blocks use of certain include files. Environment is WinXP Professional using VS 2005. A test project had NO code in it, just what the Wizard put in, still had the same problem. In my project, I need to use some MFC code, particularly CStrings. Is there a workaround for this Odd, it is definitely declared as a member method of CWinApp in line #4471 of vc\atlmfc\include\afxwi ...Show All

  • sandsdad Building 64 bit application with VC++ in Visual Studio 6.0

    Hi, I am building a 64 bit application with VC++ 6.0. Machine configuration: EM64T GenuineIntel Processor Architecture: AMD64 System Type: x64 What should be the way to setup and build 64 bit applications What are the different linker options ( /machine:x64 is right ), compiler options and also what is the version of Platform SDK required Thanks in advance, Swati Hi, I found the way to build 64 bit app with VC 6.0 at http://www.eggheadcafe.com/forumarchives/vclanguage/Aug2005/post23130822.asp However for EM64T, I am unable to install PSDK (feb 2003 SDK since VC 6.0 is not supported after that). Any pointers why this is so Or is there any other workaround I coul ...Show All

  • ghw123 Borland C++ V4 and Visual C++

    I have been asked to upgrade an old system. The person in question has the files which were created in Borland C++ V4. However i do not have Borland C++, is there any version of Visual C++ that can read the files or will i need to source a copy of Borland C++ What files That makes sense. I did not realize that that is what you were asking but it seems to be a valid question. I don't know of a way for VC to read the Borland project files and I doubt that such a thing exists. If it does then the quickest way to find it is to search MSDN for Borland. You could search using the two words Borland and project. You are more likely to get help in a forum or newsgroup that does not specialize in VC a ...Show All

  • TheQuietShadow MFC Controls in Managed C++... Help!

    Hi, A while back I designed a couple of CEdit derived MFC controls in VC++ 6.0, but our company recently made the upgrade to Visual Studio 2005. I need to re-use these controls from C# and VB environments, but would like to use the existing code rather than re-write every control. These controls will be contained in a managed C++ DLL. I've been trying to create a System::Windows::Forms::Control object which wraps my CEdit control, and passes Windows messages through to the control by overriding the DefWinProc function, but for some reason the control is not painting/drawing. Any ideas Thanks, Riaan ok... got it figured out: overload the TextBox::OnHandleCreated function as follows: ...Show All

  • SWBliss why ok with istream but not with ostream?

    Hi there, In my program, I define a class Mytype. In order to make cin>> and cout<< availbe for Mytype objects, I include iostream and declare ostream& operator <<(ostream&, const dvariable&); istream& operator >>(istream&, dvariable&); But the combiler, visual studio 2003, seems not recognize ostream at all and gives a lot of error messages about the line with ostream, eg, syntax error: ',', 'int ostream': redefinition, syntax error : missing ';' before '&', etc., while the line with istream is fine. Any suggestions are appreciated. rich judging by <iostream.h> you code uses pretty old staff (iostream.h expired like 5 year ...Show All

  • Jon_H COM, get methods/parameters supported by an interface OR create a request at runtime

    My goal is to read an xml file, and depend on what the xml file has, QI to an existing Interface and access the method. To be more clear here are 2examples: <IBla> <IFoo> <get_Name> <parameter1 type="long" value="52"> Will create: IFoo* ifoo = ibla; long longe; ifoo->get_Name(&longe); if (long == 52) return S_OK; <IBla> <IMe> <get_Count> <parameter1 type="int" value="2"> Will create: IMe* ime = ibla; Int inte; ime->get_Count(&inte); if (inte == 2) return S_OK; This is how far I can get: By having the IID in the xml file I can get the interfac ...Show All

141516171819202122232425262728293031

©2008 Software Development Network

powered by phorum