that was the actual code minus top comments
Type: Posts; User: *nick
that was the actual code minus top comments
I was wondering how to find the previous node in a singly, circular linked list.
you probably need to go full circle to find out what it is.
thx, but if I forgot to include malloc function, why did it work anyway,
I think I fixed the issue, I am getting these errors now, how can I correct this?
c:\Nick\C projects\portal>cl filename2.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01...
Hi
this code is crashing, what did I do wrong in here?
#include <stdio.h>
#include <string.h>
#define MAXLINES 100
char *arrFilename[MAXLINES];
ok you say that I shouldn't use but I see it in Petzold book example
HELLOWIN.C
/*------------------------------------------------------------
HELLOWIN.C -- Displays "Hello, Windows...
i would prefer to do option 1 for now, can you advise how to convert the strings?
1. continue using readdir and convert your strings
Yes I know that it is the unicode issue, but if I will need to use it later on, how can I fix it now?
yes I am not using it because I am getting Chinese chars in drop down box if I put it here
SendMessage(hwndCombo, CB_ADDSTRING, 0, (LPARAM) items[i]);
changed:
SendMessage(hwndCombo,...
thx I have ported this code to win32, but it seems to have a memory leak, it crashes after a minute.
I created a thread for this:...
Hi
I have an issue with this code, it has memory leak.
#include <windows.h>
#include <stdio.h>
#include <string.h>
FILENAME *arrFilename = (FILENAME *)malloc(10000 * sizeof *arrFilename);
is this correct?
i am getting error with this in VS2010, but it worked with command line:
FILENAME *arrFilename =...
can some one explain the stack memory in windows, ie when the program is running you can define variable to be used in stack or not. how do i know if i want to use stack or not?
can this be moved...
thank you, How do I use the arrFilename, I am still trying to get pointers
// print array of filenames
for (i = 0; i < j; ++i) {
printf("i %d: %s\n",i, arrFilename[i]);
can you suggest how to fix this?
why is the program crashing when I change 3000 to 4000 on this line
char arrFilename[3000][MAX_PATH + 1];
#include <stdio.h>
#include <string.h>
but I will need to move to advance stuff, I will need to know a lot about windows controls, I want to work on building ERP system. our company has ERP built in VB, but it seems to laggy to me so I...
hi i am currently reading "programming windows 5ed" by petrold,
are there any other good books on this topic you can recommend like this one?
also why this windows programming board doesn't show...
Syndacate and nonoob, thanks dudes. you know your pointers.
when i run this, i get an error, am i using pointers incorrectly?
#include <stdio.h>
#include <stdlib.h>
void print_array(char *s)
{
s = (char *)malloc(6);
well in need to parse the html file for some info so saving manually is not what i need. So far I been fussing with curl libraries but keep getting that different dll are missing. no clear...
tried to install curl, but couldn't find how to install it.
i got vs6.
btw, any other options on getting a web page to a file?
from the net. for example Allocator | Define Allocator at Dictionary.com , take this address and save it to file.
hey, i am trying to save a html source file. How can this be done. thanks.
helloworld.
i run into this problem, trying to get a max value for float, but reach "16777216.000000", if am adding 1, more if I add 10
is this something to do with the registers on CPU?
...