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

Software Development Network >> Visual C++

Visual C++

New Question

PrintDialog settings donot work properly
VS2005 linker error with typeid
dll build successful, no dll created
Using hotkeys to select edit boxes
Class diagrams unpresent in VC++05?
compiler cant find dll
How do I set nCmdShow parameter in WinMain()?
error LNK2019: unresolved external symbol _main referenced in function __tmainCRTStartup
winuser.h error
Reading XML File and storing into a 3 dimensional CString Array Variable

Top Answerers

aghoneim
Randy Trexler
HopeDreamsComeTrue
CarlosAlberto
Peejj
Roger Jennings
Ram Babu
TheDesperado
Garrett Serack - MSFT
.neo
Rispoli, Philippe
Only Title

Answer Questions

  • Olavo move to VC++ 7.0 compiler problems

    Hello! compiling Net2( http://www.gameprogrammer.com/net2/net2-1.html ) using Visual Studio 7.0 generates error: net2sets.c(61): error C2054: expected '(' to follow 'IP' code which produces the error: SETCODE(, IP, IPaddress, 10, ipEqual(a, b)); SETCODE is defined in set.h (sorry for posting the whole file contents, but I cannot pull out of it important part ): #define SETTYPE(NAME, TYPE) \ typedef struct \ { \ int itr; \ int last; \ int size; \ TYPE *set; \ } NAME##Set; #define SETFORWARD(MODIFIER, NAME, TYPE) \ \ MODIFIER int init##NAME##Set(NAME##Set *s, int size); \ MODIFIER void finit##NAME##Set(NAME##Set *s); \ MODIFIER int member##NAME##Set(NAME##Set *s, TYPE *v); \ MODIFIER TYPE *item##NAME##Set(NAME##Set ...Show All

  • r3zonance Resource How To: Export String Table

    I'm looking at the String Table of a resource file (VS2005). I've selected them all (ctrl-A), but I can't copy them and paste them into a seperate application (such as notepad or excel). How do I export the string table I need it exported so that the strings can be sent to a translator to translate. A resource file is simply a text file (.RC) - you can open this up in notepad and copy the strings from there. Yes, I had considered using the strings straight from the rc file directly - but they are not as nicely "compiled" compared to the string table editor in the VS IDE. Thats why I was hoping that there was a way to export them (or copy and paste them), straight from VS. If there ...Show All

  • piportill4 System::String^

    I am developing an application in visual c++ using VS 2005. I am reading data in via the serialPort dataRecieved class. This returns a system string, and I am assuming that the string is an array of unsigned characters. The trouble is I am unsure how to access individual data bits within the string. I can perform an if statement to check the contents against a set value. if(myString->Text == "hello world") But......I want to perform something like a switch statement so I can test the 3rd character against a set value, say... "x" or something similar. Can I do this When I have attempted it, I receive errors stating that a switch cannot be performed on a system string - IT IS ILLEGAL - apparent ...Show All

  • Biju S Melayil Multi-dimension arrays in VC++ 2005 for n00bs

    Okay, a little background: I'm an aerospace engineer, not a programmer, but I'm experienced in C, and I'm using VS2005 to make some simple-ish tools for our group. I'm trying to declare a multi-dimensional array in VC++ through the 'standard' method... double test[5][5]; ...and then access it in the 'standard' way... test[0] = something I'm putting in there.; ...but it's not working. When I debug, the Watch says that test is a double[][] of length 5. So far, so good, but when I expand it, instead of the 'standard' syntax, it comes up like this.... test[0,1] Length 0 double[] test[0,2] Length 0 double[] ...and so on. I've dug through our copy of MSDN, and online and there ...Show All

  • Steve Wenck Find In Files & Code Comments

    Hi everyone, I love Visual Studio's many 'Find' functionalities (Find in Files, Find and Replace, Quick Find, etc.), but I feel as though there's one thing seriously lacking in all of them. Why isn't there a way to specify whether you want to search in code only, comments only, or both code and comments I would have thought this would be a fairly intuitive drop-down option to add, but apparently not. Even worse, after scouring Google and these forums, I still haven't found any way to do it, even by using something like Regular Expressions. I'm sure it can be done that way, but I'm not sure how to construct a regular expression that would be able to run a search like that. And having to wrap each search string in a regular expression eve ...Show All

  • Dr. YSG LNK2019 unresolved external symbol error

    Hey everyone. Im creating a program that inputs polygon data and outputs polygon projections. When compiling some code I get the following build output. ------ Build started: Project: projection, Configuration: Debug Win32 ------ Compiling... homework6.cpp Linking... projection.obj : error LNK2019: unresolved external symbol "class vector<double> __cdecl operator*(class vector<double> &,class vector<double> &)" ( D@YA AV $vector@N@@AAV0@0@Z) referenced in function "void __cdecl parallel(void)" ( parallel@@YAXXZ) projection.obj : error LNK2019: unresolved external symbol "class vector<double> __cdecl operator*(class vector<double> &,double)" ( D@YA AV ...Show All

  • cedubose Migrating from VC++6 Pro to VS2005 Standard

    Hi, I just got VS2005 Standard (+ SP1) and I'm migrating from VC++6 Pro. I'm purely only interested in C++, Directx and MFC development. Does anyone know if Microsoft has any migration guide that I could read to help me along the way 4 simple questions: 1) What happened to Class Wizard window VS2005 and how do I go around this in VS2005 2) In VC++6 I had resources tab in my project window. In VS2005 Solution window I don't see resources tab, how can I add it to the solution view Or how do I access the resources tab 3) If VC++6 sometimes I needed to rebuilt by *.clw file as some classes are deleted added to the project, I simply deleted the file and then regenerated it in VC++ IDE. Can this be done VS2005 Or is it even necessary.... 4) I ...Show All

  • CamPeck Error In MfC App

    Help needed i am stuck with this error while developing MFC based application in vc++ 8. pls help me get out of this mess code: void CmfcaView::OnEnKillfocusname() { char name[15]; GetDlgItemText(IDC_name,name,15); if (strlen(name)==0) { MessageBox("The Employee Code can not be blank. Please enter an Employee Code."); CEdit *code; code=(CEdit*)GetDlgItem(IDC_name); code->SetFocus(); // TODO: Add your control notification handler code here } } Error: Error 1 error C2664: 'int CWnd::GetDlgItemTextW(int,LPTSTR,int) const' : cannot convert parameter 2 from 'char [15]' to 'LPTSTR' Error 2 error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'const char [67]' to 'LPCTSTR' thanks Also, take a look at this F ...Show All

  • jwaters msvcr80.dll problems: version 8.0.50727.363 versus 8.0.50727.42

    I have a really strange problem. I'm using Visual C++ 2005 Express installed, and everything worked fine ever since I installed it. But at some point during the last few days something broke, and now I can't run my programs anymore. I started to investigate, and found this: A simple test program like this (test.cpp): #include <stdio.h> int main() { printf("Hello, world!\n"); } when compiled with cl test.cpp /MD results in three files, test.exe, test.exe.manifest and test.obj. The manifest contains: < xml version='1.0' encoding='UTF-8' standalone='yes' > <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'> <dependency> <dependentAssembly> <assemblyIdentity typ ...Show All

  • Noah Phense Multithreading in api calls

    my problem is: i am working on a vb6 code which basically uses a dll written in vc++6 to send some data through socket to a server. as the software is being redesigned to run on web we need to make the data upload part run in a separate thread. the problem is that the api call by the vb passes some parameters to the dll. int __stdcall sendDataFile(char* sfileName, char* sfileNameAs, char* sipAddress, int sport) { //initializing the globalvariables fileName=sfileName; fileNameAs=sfileNameAs; ipAddress=sipAddress; port=sport; AfxBeginThread(sendDataFileWorkerThreadProc,NULL,THREAD_PRIORITY_NORMAL); return 0; } sendDataFileWorkerThreadProc is the worker procedure the problem is that when accessed from the worker procedure ...Show All

  • Mateusz Rajca Serial Communication at 230400 baud rate

    I am creating a DLL for serial communication using VC6.0. I can achieve communication with baud rates up to 115200 using the CBR_115200 constant in WINBASE.h. I need 230400 but it does not exist and MSDN does not support 230400, it jumps from 115200 to 256000. I have tried adding CBR_230400 to WINBASE.h with no success, can any provide any information for using Microsoft's serial functions (DCB) with 230400 baud rate have tried CBR_256000 with device set to its max of 230400 -- didn't work. Max baud rate on serial device is 230400, so 256000 didn't work. Why would Microsoft design Hyperterminal with 230400 and WINBASE.h without it pelase help. Since you had not specified your system configuration, I pointed you to t ...Show All

  • preethi_rjs i++ or ++i which one efficient

    Hi, which of this statement is efficient i++ or ++i; i tried hard to find the answer but i am getting many explanations i am not able to find the correct answer. .help me manish sharma To answer this, a quick problem study is required. The core difference between pre- and post- increment/decrement is the need of a temporary. For the term x++, if disregard type differences and optimizations, the operator would have to: do a copy of x increment x return the copy The pre-increment, however, would simply be increment x return x In terms of types and optimizations, the compiler is often able to remove the extra instructions when you're dealing with built-in types. So ...Show All

  • http&amp;#58;&amp;#47;&amp;#47;www.ilkon.com memory pane?

    With Visual C++ 6.0, I could view memory via the Memory Pane (as I recall its name...). I'm not finding anything equivalent under Visual Studio 2005. Please tell me that this is still available; I know .NET wants to hide what's going on in real memory from me, but in this particular case, I need to watch a range of memory when debugging. Thanks. That is just too cool. Microsoft rocks! ;-) They are there: they're under Debug -> Windows -> Memory. ...Show All

  • cleverous Newbie getting C2352 error

    I get this error, error C2352: 'System::IO::DirectoryInfo::GetFileSystemInfos' : illegal call of non-static member function, when I try to compile this line: array <FileSystemInfo^> ^fi = DirectoryInfo::GetFileSystemInfos( "*.txt" ); GetFileSystemInfo returns a handle to an array of filesysteminfo objects. I think I'm defining fi as a handle to an array of these objects. Any help is appreciated! Johnny Hi, First we need instantiate  DirectroyInfo .Then we can use the GetFileSystemInfos method of the same instance. like the following.. DirectoryInfo^ pDI = gcnew DirectoryInfo(L "C:\\Temp" );  //(Here 'C:\Temp' is the Search Directory path)   array <FileSy ...Show All

  • anderskj1 How do you make a single file compile without making a whole project in vc++ 2005?

    Now this is totally absurd. I am learning C++ as a beginning programmer and bought vc++ 2005 and installed it but its so freaky complicated further more inroder to make simple programs such as heelo world, adding 2 integers, etc you have to make them into projects for them to compile when i used a new file option there wasnt any option for building or compiling. Everytime i have to solve an exercise from my book i have to make a new whole seperate project with there headerfiles,source files etc how can you make a only single .cpp file and get it to compile in vc++ 2005 And what's the problem with making a project It's much more organized. thanks for the reply but this implies that ev ...Show All

282930313233343536373839404142434445

©2008 Software Development Network

powered by phorum