How? Looked on wikipedia, did not make sense.
Type: Posts; User: Benji Wiebe
How? Looked on wikipedia, did not make sense.
Thanks. I will probably do that.
Not sure... someone else's reply might be better. This is only my first C++ program. I have programmed in C and Java ( Got really good at Java! ) and that's why I...
I have a class with two constructors, one constructor has no arguments, the other constructor has one argument. The constructor with no arguments calls the other with a default argument. The issue...
I found this too, but I was a little hesitant to use it. I guess I will try that. One thing... Whats the code required to just handle files dropped on the program window from windows explorer (C++)?
How can I do simple drop handling in Windows? I only need to handle dropped text and files. It needs to be in C.
Any help will be appreciated.
How about a "good" white-list web filter that has a list of domains that no-one can go and edit any time they feel like it?
line 233: next=next->ptrR;
next->ptrR is NULL. You can not assign NULL to a pointer (as in the next line)
and expect to use the NULL pointer without crashing your program.
Did you mean this (on line 160):
currH->ptrL=(node *)(sizeof(node));
Or this:
currH->ptrL=(node *)malloc(sizeof(node));
Just wondering...
GNU GDB reports SIGSEGV on next use of currH->ptrL
Is there a somewhat simple way to create a new user from within a program running with root privileges?
CreateFile("C:\\quux\\bar.foo", GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ, NULL, OPEN_ALWAYS,
FILE_ATTRIBUTE_NORMAL, NULL);
Creates ( or opens an existing ) file to read and...
But would that work if my program ended like this:
...
foo(argv[0]);
return 0;
So that my program would start up a new instance of itself and then exit, without waiting for the new process to...
How do I start a program as a detached process in Linux?
What I mean is I would like to call a function foo("/bin/bash") and it would start bash and then promptly return, with out waiting for bash...
This works for me now:
CreateWindow(STATUSCLASSNAME, "Hello!", WS_CHILD | WS_VISIBLE,
CW_USEDEFAULT, CW_USEDEFAULT, 0, 0, hwndDlg,
NULL, hInst, NULL);
Well, I am going to try to write a smaller program that only displays a window with a status window. If it works, I will have learned something, if it does not work, I will post the code.
This would work to.
int i;
char* time = malloc(strlen(__TIME__) + 1);
strcpy(time, __TIME__);
for(i=0; i<strlen(__TIME__)-1; i++)
{
if(time[i]==':')
{
Just try this.
int a, b, c;
char* time = malloc(strlen(_TIME__) + 1);
strcpy(time, _TIME__);
sscanf(time, "%02d:%02d:%02d", &a, &b, &c);
printf("%02d\n%02d\n%02d", a, b, c);
Code length: 558 lines.
WS_VISIBLE has been added. My status window is not appearing. InitCommonControlsEx is reporting success.
Why not?!
I do have the code
LPINITCOMMONCONTROLSEX cmmnctrls=malloc(sizeof(cmmnctrls));
cmmnctrls->dwSize=sizeof(cmmnctrls);
cmmnctrls->dwICC=ICC_STANDARD_CLASSES | ICC_BAR_CLASSES;
...
I added that and changed arg 10 of CreateWindowEx to NULL. It still does not work. The HWND returned by CreateWindowEx != NULL.
What is argument 10 of CreateWindowEx for? What is the proper value?
I have been trying to create a status bar on the bottom of my window. I can not make it work. I have tried CreateStatusWindow which does not work as well as being deprecated.
status =...
This is the current content of accel.rc:
// Generated by ResEdit 1.5.7
// Copyright (C) 2006-2010
// http://www.resedit.net
#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
That is what I used to create the accelerator table.