I havent managed to find any way of connecting a debugger to gcc (MingW) yet. Can anyone suggest a link?
Charlie Benger-Stevenson
Hart Hill IT Ltd
www.harthill-it.co.uk
The memory is getting corrupted somehow.
I have some debug code
printf("rule.ipAddress FOR PROGRAM %s = %s \n",programs[0].name,programs[0].firewallRules[0]->ipAddress);
When I execute this right after the rules have been added, it is fine.
When I execute this later in the program (like...
There might be a solution in unmanaged code that we can put together but I need to know a bit more about what you are trying to do.
It is possible to open the image, and get a handle to the device context but what are you doing with this dll?
Are you writing a dll?
What is the handle to? A...
None of the above. Although the 15 chars + \0 is a good spot.
Need to declare the nested array as
FirewallRules ** firewallRules;
This I think is that the parent structure cannot have dynamically allocated memory structures in it, rather you need a pointer to the array.
Seems to work. Any...
Hi,
I wonder if anyone can help me. I have the following structures defined
typedef struct _FirewallRule FirewallRule;
struct _FirewallRule{
char dnsValue[1024];
char ipAddress[14]; //xxx.xxx.xxx.xxx - 15 chars
int protocol;
char user [255];
char group [255];
int action;
int...
Great answer. Things to try, so I am not feeling as stranded. Thanks for your suggestions.
Charlie Benger-Stevenson
Hart Hill IT Ltd
www.harthill-it.co.uk
Hi,
I have a struct which is defined in a header file (firewallrules.h) thus
typedef struct _FirewallRule FirewallRule;
struct _FirewallRule{
char * dnsValue;
char * ipAddress;
int protocol;
char * user;
char * group;
int action;
int ruleStatus;
};
typedef struct _Program...
Hi,
I have an array of structs, comprising the name of an application and the path
struct{
char name[50];
char path[1024];
}
I am trying to write a function to search this and build a sub set based on the search string.
Eg, If the search string is "Fi"
Then it would match from the left hand...
I am thick. Opening the wrong key, should open lpSubSubKey not lpSubKey.
Can anyone show me how to scoop the data out of the buffer and into a char array?
Ultimately want to return an array of strings (char arrays) of the installed programs.
Charlie Benger-Stevenson
Hart Hill IT Ltd...
Trying to write a function to return an array of installed apps by querying the registry. Nearly there, opening all the enumerated sub keys, but when I try and read the value (reg_sz) it returns error code 2 - not found. Seeing as the value does exist it is driving me a bit mad.
Code is here...
I have googled this to death and got nowhere. It seems like such a common problem, and lots of advice but nothing works for me.
Here is what I am trying to do.
Two divs (inline)
<div 1>---------------<div2>
Some long *
text that nicely * An image
wraps inside its *
nested div...
Yep found it. Must have downloaded the wrong SDK? Not sure I did, but still. The latest one has the headers. There is a VC directory and they are all in there.
Charlie Benger-Stevenson
Hart Hill IT Ltd
www.harthill-it.co.uk
Hi ArkM,
Thanks for the timely reply. My question is why is stdio.h not in the include directory of the sdk, essentially.
It was my understanding that the platform SDK contains up to the minute header files. Since VC++ was released there have been many patches to the OS, and the SDK is a good...
Hello,
I want to do some development using the windows SDK. This is the closest forum I can find for my question. I have installed the latest SDK but when I add the include directory to my compiler it complains about unreferenced header files. Eg stdio.h
Sure enough stdio.h is not in the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.