Hi all,
Having an __int64 value representing a millisecond time since January 1, 1970, 00:00:00 GMT, how can I convert it into a string representation of format yyyyMMddHHmmssSSS (milliseco...
hi - new to unix dev, i have this working in windows since you can specifiy handles to stdin and stdout when calling CreateProcess API. In unix i see there is popen, but its only one way. I ...
I'm looking for any example code for UDP Sockets in C++, for Linux Platforms (not using winsock.h). For example, a very simple client/server application for Linux, that is using UDP sockets. M...
I am attempting to read a record from a (.txt) file. The layout is:
int ID;
char name[21];
double Payrate;
int dependents;
I am using the code block below:
while (!masterFile.eof(...
Hi expert,
Does anyone has example how to write a thread pool application in C++ pthread?
For example, a single input file get processed by x number of threads...each thread will process...
Hi.
Any DLL I code and compile in Visual C++ in VS 2008 I get problems with it.
It needs MSVCR90.DLL as you see in Image, but I don't know why and it not exists in ANY PC. Why it should ...
Is there a function or a library which has a function for this problem : I have x numbers (e.g 5) , and I want to list all possible combinations in of these numbers taken y (e.g 3) at a time. ...
Hi,
I am running into problems regarding threading during termination of a c++ console app.
In my main(), I create an object that, itself, launches many threads. The object, called "co...
One of our C++ applications developed using MSVC++ 6.0 started throwing the following error:
The exception unknown software exception (0xc000000d) occurred in thte application at location 0...
Hi
code snippet
int l_i_TempASCIIDec = 0;
char l_c_TempChar[1];
l_i_TempASCIIDec = (char)l_c_TempChar[0];
This works fine for characters up to the value of 127 I think. I have a ...
Let's say I have a String class derived from std::string, and a function which takes a char* as an argument . . .
Is it possible to overload the cast operator in the String cass so that a f...
I am trying to pass a multidimensional array into a function, but I cannot get it to work. I have tried several methods that I found on teh interent but none work. Could someone please post so...
I am writing a DLL that will serve to wrap the frequently used parts of the Win32 API in a set of C++ classes. My problem is that I keep getting compilation errors that some base class or ano...
Hi everyone,
Background:
I am creating a simple GUI using Visual C++ MFC. My IDE is Visual Studios 2005. The GUI has a BUTTON with the title "Detect" and an EDIT CONTROL to display text....
Any system or free code to convert the DATE value to the integer values representing the day, month, year?
Hi experts,
I need to convert the Microsoft data type DATE (typedef double, if ...
Im writing a program which reads information from numerous text files and currently I am reading all the information from the text file into an array of structs then manupilating my data from ...
I am using visual C++ 2005(native C++)
I got the error
error C2065: 'CString' : undeclared identifier
for the following code,
what is the problem?
Porting Win32 code to Solaris generates an error for the following code:
unsigned char* p ="P";
Error: Cannot use const char* to initialize unsigned char*.
How do I fix this ?
I have a friend in another country. She has sent me a program, which she has written in Turbo C++ 2.0. She wants me to make some corrections. For years, I have not worked on Turbo C++. But I w...
Hi,
I'm updating a table in sql server from a front end written in C++. This some thing like this:
sprintf(sSqlQuery,
"UPDATE %s se...
I want a piece of function/code which will:
Read binary file which contains 0 chars also (so char array is not applicable).
So I think byte array should be used.
I want a piece of cod...
I am making a small "attack" text game. On a windows platform, within command prompt (as of right now). I am wanting to incorporate a count down that restricts a player from being able to perf...
How does the C++ SetTimer() function without a wndow?
I need to set a timeout on user input to getchar() using Visual C++ 6.0
I'm looking for something equivilent to the Unix signal() and al...
I am trying to read the data present in MS word Document through Automation,But is very slow?How can i speed up the reading?I have attached the code ,in that OnGetTextFromWord() is a event han...
Hi,
I need to convert two integer into a 64-bit integer.
How could I do that?
Thanks