I am just setting up a very basic app at the momment and getting the following errors:
Error 21 error LNK2028: unresolved token (0A000029) "extern "C" void __cdecl NFastApp_Free_Command(str...
Hi,
i am trying to read in a string using cin but it seems that cin will only read till a whitespace is detected and stop reading the rest of the string.
e.g.
string a ="";
string b=""...
Anyone know where to find a templated C++ min heap? Writing one would feel like reinventing the wheel. I imagine it just requires the type stored to have a function like 'priority()' that retu...
How do i send CMD commands without having the window show up.
I need to execute ftp -s:myftpcommands.txt (upload to ftp files) without having the cmd window show.
My problem is the following....
My program contains 1 dll and 1 exe files
----------------------------------------------------------------------------------------------
in the dll i hav...
I need help creating a batch script using robocopy or C++ to synchronize two folders. It would have to overwrite old files/folders with the newst files/folders. What's the best way to achieve ...
How do i write a Win32 Console application that creates one additional thread (i.e. it will consist of two threads). The new thread will simulate working for a period of time by calling the s...
Hi,
Im using VC6++ and need to convert from LPTSTR into CHAR[]
I tried this but doesnt work:
LPTSTR target;
char cTarget[50];
strcpy(cTarget, target);
it say this error:
error C2664...
Hello.
I just want to know how can I convert an unsigned char to a string. The scenario is like this. I have detect the MAC address of a PC using GetAdaptersInfo(). So the return of the API...
Hello! In emacs, you can set it so that when programming in C++, if you press tab, it will take the current line and reposition the code so that it is properly indented with the rest of the c...
I'm currently writting an application that needs to be able to export data to a Microsoft Excel spreadsheet. I've looked up and down through MSDN but havne't been able to find anything that is...
I am trying to create a calculator in C++ It works in a console window and allows the user to enter
the first number, a second number and then an operator such as +, -, *,
+. It will then ...
When a letter is entered instead of a number into this code, it goes all crazy and keeps repeating the same words over and over on the screen. The line is marked by a comment below
void re...
Hello,
I need to convert the following enum to a string....how can I do it?
typedef enum {
ENC_MY_FORMAT =7
}PictureFormat_t;
Thanks.
This doesn't make any sense at all. I included those file in the zip file below:
http://www.totaltopic.com/error.zip
There are 4 files. I create a new project in Studio .NET, as a new empty ...
A dice is being thrown many times and the occurrences of each digit are recorded. My output should produce 5 since digit5 appeared 99 times.
#include<iostream>
using namespace std;
int ...
i am running my C++ program in LINUX redhat 9
i got actually 2 questions
question 1
---------------
my code looks like
char buf[20] = " ";
while(1)
{
...
need a little help on how to set up this program
valid input is [0,999]//got that part
need to output :
cout << "Enter your number:"<< endl;
cin >> number;
//check for valid number
...
I need to know the source codes in C on how to
1. evaluating prefix expression
2. converting infix to prefix
in the same main program
I am currently using the WIN32 API in C++ and dealing with strings in the form of LPCWSTR... First off, I read a value from registry via the API and apprently its a byte array. So I converted...
How do I copy the value of a CString into a TCHAR* ??
Note, a UNICODE build.
For example:
TCHAR* szTest = NULL; // watcher shows 0x00000000 ""
CSt...
I have a dll, and i have an exe.
Now the dll is a plugin (so absolutely NO .lib import!!).
I have a class in the dll (MyDb). Where the header-file is shared by both the exe and the dll...
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. ...
Dear Experts,
are there any source code for the conversion BMP to JPEG, JPEG to bmp and TGA to JPEG and also draw the rectangle on the image.
THX All.
Hi,
Could somebody provide me an URL or a sample code to convert a LPSTR string to LPCWSTR and from LPSTR string to char*.
Thanks in advance,
Pampa