void Append(HWND hedit, char *str)
{
int len = GetWindowTextLength(hedit);
SendMessage(hedit, EM_SETSEL, len, len);
SendMessage(hedit, EM_REPLACESEL, 0, (LPARAM)str);
...
Type: Posts; User: Anubis208
void Append(HWND hedit, char *str)
{
int len = GetWindowTextLength(hedit);
SendMessage(hedit, EM_SETSEL, len, len);
SendMessage(hedit, EM_REPLACESEL, 0, (LPARAM)str);
...
I have tried that. It doesn't seem to return before the program crashes. The program freezes for a while then windows gives that popup "Project1.exe has encountered a problem..."
Ok I changed my check function like this
int Check()
{
char* buff;
DWORD count;
DWORD countr;
HINTERNET hRequest;
Append(hEdit, "1");
Im making a program using wininet that connects to a website and follows commands on the server. But it keeps crashing.
This code is used in WM_CREATE
hInternet = InternetOpen("XVir 0.02",...
I want to copy a string without the first four characters. It doesn't matter weather or not it's c or c++ style strings.
Actually I wouldn't use this for an actual program. I just want to know how it's done. That kind of thing bugs me too.
I bought the first one. Thanks for the recommendations.
Could someone direct me to a tutorial on how to make a custom gui, such as in windows media player or windows live messenger. I have tried googling, but I haven't found anything.
Regardless of the slashes, I get either a 2 or 6, and I know that key exists, I can open it in regedit.
I'm working with ansi. When I try with // it has system error code 6. When I try with / dev-cpp gives warnings about invalid excape characters. When I try with \ or \\ it has system error code 2.
I want to be able to be able to read and change the value of a key from the registry. I have a fairly good idea of how to change it, but I am having trouble reading the value. I have looked at the...
I think I know what you mean. I think a high level language is the best option given my level of programming, thanks everyone for the help.
MinGW is too large to package with my program. how would I go about makeing "my own language"? I want people to be able to run the generated programs on systems without my program installed.
in order to compile it, I would open it up in some ide (i use Dev-C++) and compile it.
i am a noob when it comes to the detailed stuff about compiling code. I want to package mingw with my program....
im using windows, how would you link and compile?
My program will generate the c++ code. How would you go about having your program compile and link it?
(this is not a question about compiling c++ code; im asking about making other programs with...
How do you create exes from your c++ program? I want to be able to have a user use a gui to design a program and then create a program that they can run anywhere without my program. How can I do this?
I have been working on this project for a while. Its my first winsock application so im probably missing something simple. The problem in having is that is cannot send more than 8 characters at a...