OK. Thank you for your input.
Type: Posts; User: laughing_man
OK. Thank you for your input.
I mean to say that i have seen some example pass just NULL as that second-to-last argument, instead of hInstance or GetModuleHandle(NULL). Is there a time when we should pass an hInstance and a time...
While using the CreateWindow function to create child controls inside the main window do I have to pass the main hInstance to it? I know I have to pass it while creating the main window, but what...
Okay, Thanks!
I made this C function for easy reading of strings from the console. Can someone please help and find if there are any faults(like a memory leak) in the following code? Which line would the fault be...
Thank you everyone for being patient with me.
So according to your explanation a memory address is present for each byte. And each byte does not utilize the entire memory word in my case.
Consider this
#include <stdio.h>
int main(int argc, char argv[]){
char ch1,ch2,ch3,ch4;
ch1 = 'a';
ch2 = 'A';
+mutantJohn : No not that way.
+stahta01 : I have an Intel Atom CPU, on a Gateway netbook, and Windows XP on it.
Are locations in the RAM addressed per word or per byte? I am using a 32 bit machine, so I think that it means that on my PC a word would be 4 bytes.
Instead of 19 do -19
I think keycode for ESC is ASCII 27.
%s enables reading upto the first white space.
Thanks
laserlight One more thing. I am using PellesC and it has that getline function you spoke about. But it seems to be similar to fgets, in that I have to mention th size there too and provide a char...
laserlight BTW in the last method (linked list of char arrays), in the end I would combine them into one dynamically created char array.
My main aim is to not worry about the size while creating a...
laserlight I am sorry, I forgot to mention that I am working on Windows XP. Is that "POSIX standard getline function " available in win32.
laserlight Yes!
I have even tried these:-
[1]first read into linked list of chars and then combine them into a single string. But then, I read somewhere that malloc and family of statement are...
Is it possible to create a dynamic char array on the fly directly from stdin? I do not want to create a fixed length array before hand and then copy contents of it into a malloc created array.
...
How about exposing him to different families of languages and letting him choose for himself depending upon his aesthetics. First explain to him what is a programming language and why we need it....
I understand you. I was just exploring my options..I mean I wanted to know what "I" was comfortable doing in C. To all the replies - THANK YOU!
c99Tutorial - what you tell me to do is overwhelming and a over the head bouncer:confused: as I find it difficult reading other people's huge projects. But I will try... :) See you guys next year...
Actually I don't need... But I am attached to MS Access' usability. So I want to know if there is a simple way in which I could write small C win32 GUI apps which could connect to my MS Access...
Hi c99tutorial! Well, I had checked both your links in the past and it was not helpful to me at all. I am just looking for a simple solution. I am looking for some plain win32 api stuff. I recently...
Just exploring! Can someone PLEASE help me with a tutorial or something on how to use MS Access in C(Windows API)? Do not tell me to use C++. And yes, I have checked Google and am unsuccessful at...