Hiello All,
Can we use a string in C++ switch case.
Can I pass a string to switch,
eg:
switch ( input )
{
Case ITEM_CRISPS:
printf("Walkers Cheese & Onion\n");
break;
...
I have a string that is passed into a C function in a program i'm working on (not normally a C developer guy). The string is a datastamp (i.e. 2008-08-06), and I need to convert it into "2008...
I have a class definition that goes something like the following. In the constructor of derived classes, the structArr[] array needs to be initialized with an unknown number of structs, each ...
Hello
I wanna get some filenames and write them into file. some files are not english (so I use unicode -> TCHAR).
I use FindFirstFile & FindNextFile for get filenames and store them in TCHA...
Currently we are suing rc.exe to compile manifests and resources for our c++ application using vs2005. We are trying to migrate to vs2008 but even with a complete install there is no rc.exe an...
I wanted to make a C++ application send URL parameters over HTTP. pretty much I'm making a client application that would set up a remote session by passing http://remoteserver.com/get/?ip=67.2...
code below produces the error msg:
1>c:\users\daniel park\documents\visual studio 2008\projects\sim hw\sim hw\sim hw.cpp(54) : error C2668: 'pow' : ambiguous call to overloaded function
1...
I get the error message...
error C2440: 'initializing' : cannot convert from 'std::_Vector_iterator<_Ty,_Alloc>' to 'std::_Vector_iterator<_Ty,_Alloc>'
...on the line denoted by "CRASHES...
I have done translation, scaling and rotation in my opengl objects......I want to know about the difference between
1, object translation and coordinate translation
2,object scaling and coo...
Hi Experts,
I need to write a program that get image frame from a camera or webcam and process image.
For webcam I can do by using DirectShow to get and capture the frame. But for a IP camer...
Hi,
I have I DLL written in C++.
In it is a function that returns a string. I want to call this function from VB6 but I am having some problems.
I have an api for VB .NET:
<DllImport("...
I am developing SDI application which captures images from FireWire Camera.
My problem is thread synchronization I think. When I read images from the camera and display them in one thread ev...
How do I declare a global variable inside a function? (so that it can be used by other functions)
Hello,
I want to have a button (CButton or CBitmapButton) which contains a bitmap from resource.
I also would like to place an icon on top of this button.
For example, if this button will...
I've got a class "Dirs" which has a "Mkdir()" method. Inside this method, I'm trying to call the system library function "mkdir(char *, mode_t)" as included from <sys/stat.h> and <sys/types.h...
Hello
I created a UNICODE file my own in C++. An UNICODE file begin with 0xFF 0xFE and the other is text. UNICODE character is 2-byte; for ex. 'F' is 46 00 and end-line (Enter in text) is : 0...
I have a struct that contains as one of its members a function pointer. The message pump has an array of these structs and loops through it each time a message is received in a TCP port, exec...
Below is the error I keep getting whenever I try to insert to my binary search tree. My code is attached as code.txt. What could possibly be causing the error?
An unhandled exception of typ...
Hi all:
I'm using the gsoap library to make a C++ proxy in order to make calls to some WebServices in my C++ program.
This gsoap library says that can be used with SSL, but in the document t...
I have a class which reads and parses a configuration file. It does this in the class constructor. But to avoid the overhead of reading and parsing a file each time the class is instantiated...
I have some 2D maps in UTM coordinates( I got from Google earth)...How to convert the UTM coordinates into local opengl coordinates to display the map in my graphics window?
thank you...
I have an opengl application developed using Glut and Glui in vc++ 2005 win32 console...i want to convert that into windows form application ...That is the use the same existing code by remo...
I would like to create a script or something, i can use as a GUI to input data, that would be inputed into Excel. for example if i enter names into the GUI they are entered into excel. i have ...
Hello,
Please help me here.
I have a function which is passing a TCHAR *key - this i need to do a comparison with a char *charstring.
TCHAR *key;
char *charstring;
strcmp (key, ch...
How would I test if a series of coordinates are colinear i.e. on the same line, I do not have line segments to work with, because there is no class for it..