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...
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...
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...
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...
Hi,
If I have a char array of some values eg
"80,8080,25,1433" etc
And I want to parse this into an int array so that
myIntArray[0] returns 80
myIntArray[1] returns 8080
etc
and I don't want to use strtok, does anyone have any ideas on a simple solution?
Charlie Benger-Stevenson
Hart...
I am writing a kernel mode driver for Windows Vista. I want to use the strtok function. When I compile I get
LKN2019: unresolved external symbol __imp__strtok
Is strtok compatible with this version of the DDK?
I am using latest DDK. I have included string.h, and it compiles but won't link...
Not sure if this is the right place to post, but seems the closest I can find.
I have compiled the "inspect" filter driver example from the latest Windows Driver Kit, and the instructions tell you to install it, and then run it from an elevated command prompt thus
net start inspect
Good in...
I am writing a function to wrap the winsock2.h function gethostname. I am concerned I have introduced a memory leak by using malloc, as if I put a free() after the return statement it will not fire. Can someone guide me?
char * getLocalHostName(){
char * hostName = (char *)malloc(256)...
This is driving me a little crazy
I have a struct
typedef struct{
char url [1000];
char ip [16];
}DnsEntry;
I want to create a dynamic array of these and populate them
like
dnscache = (DnsEntry*) malloc(sizeof(DnsEntry) * 2);
char *url="www.yahoo.com";
char...
Hi,
Just a general question on best practice for storing app settings. I am writing a kernel mode driver in C for MS windows and need to store some app settings. I was wondering what the gurus would consider best practise for this as this needs to perform quite quickly and be searchable. I am...
I want to be able to load controls dynamically at runtime into a JPanel. Can someone give me a starter for 10?
Ultimately I want to create a diagramming interface using swing but the first hurdle is to just be able to load the controls dynamically, for example a jLabel.
Thanks
Charlie...
I have seen numerous lengthy threads about this topic that have no conclusion. I have tried following the online docs on apache site. I am a software engineer of over 12 years and this has me beat.
I want
Apache2 running under Ubuntu linux
A site called sql-ledger which uses Perl
CGI enabled...
I have a Toshiba laptop with a wobbly WIFI card that keeps locking the machine up. As an interim fix I have wired the laptop to the router :-(
When the machine boots it pops up a login dialog for the router prompting for the admin username and password. It won't connect unless I do this which...
Hi,
I am tired, have had the most awful day with hardware dying on me at every turn (IPOD touch wireless sucks btw) (I know the worlds smallest Violin is playing) but I really have had a very very bad day. I wanted to set a backup routine on my MySQL database (for CRM data) and I go through the...
Hi,
I am teaching myself assembly. I have books on order by am leafing my way through code snippets and trying to piece stuff together. The first exercise I have set myself is to try and get the basic HDD info from the first (80h) HDD in the machine. I am using TASM and running in DOS (16 bit)...
OK, my problem is this.
I have an ubuntu box running samba 3.23. Vista can see the box, and prompts me for user name and password. I know I am typing correctly, yet Vista will not authenticate. I have added the following line to the smb.conf file
client ntlmv2 auth = yes
and I have also...
I need to parse an HTML document using JTidy. I have found the examples from the web and am making good headway. I just need a steer on how to traverse the xml document.
The HTML that I am trying to parse is like the following
<html>
<body>
<div class="person">
<H2>Charlie</H2>
</div>
<div...
Hello,
I have a linked list (q1) of type Report, where Report is a bespoke class.
I need to enumerate the linked list, and I understand the c#2.0 way of doing this is as follows.
foreach (Report r in q1)
{
}
It compiles ok, but at run time I get an...
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.