15,539 Topics

Member Avatar for
Member Avatar for bronzefury

Hello, I was wondering, does WSAAsyncSelect work for a console program? if so, how is this done? One of the parameters for WSAAsyncSelect is a window handle (HWND), but I don't believe a console application has a window handle. Thanks,

0
71
Member Avatar for aaron_tan

I have a char pointer here, [CODE] char* buffer = (char*)malloc(sizeof(char*)); *buffer = 1; buffer++; *buffer = 2;[/CODE] so by doing this, i actually have the pointer pointing to "1" and "2" what i actually want is the number, 12. anyone knows how can i get the char pointer's data …

Member Avatar for aaron_tan
0
135
Member Avatar for winbatch

string a = "A"; string b = "B"; string c = a + b; string d = "D" + a; string e = a + "D"; string f = "F" + "F"; Why is the last line not something the string class can handle if it can handle cases a, …

Member Avatar for Dogtree
0
73
Member Avatar for hemanth.balaji

I have to build a project. For that I am using an OWNER Drwan Menu. Now i want the small part of the remaining space to have an image. i.e a small logo in the top right corner of the application on the menu bar unused space. Now to dry …

0
96
Member Avatar for aaron_tan

I desperately need help on data type conversions. I am working on converting a set of codes in Visual Basic to C but i'm faced with a lot of problems dealing with strings. Can anyone help me out here? Below is the code I have in Visual Basic. [CODE]Private Function …

Member Avatar for Dave Sinkula
0
151
Member Avatar for happyshub
Member Avatar for happyshub
0
184
Member Avatar for harshchandra

Is there any way to know the system date automatically using a c program ? If yes please guide me through some codes !!

Member Avatar for Dave Sinkula
0
89
Member Avatar for maldini

Hi, I am having problems with the StretchDIBits function. The w->length contains the size of the jpeg. And the w->p contains a pointer to the begining of the jpeg data. Nothing displays onto the screen just a white box. Any Help would be really appriciated. [code]HDC dc = BeginPaint( hwnd, …

0
79
Member Avatar for stage

Hellow I'm just started whit C. I'm usig gcc and get this error: [CODE]test.c: In function 'main': test.c:8: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast ..... [/CODE] This is my code: [CODE]#include <stdio.h> #include <string.h> int main(int argc, char *argv[]){ int arg = atoi(argv[argc-1]); …

Member Avatar for stage
0
9K
Member Avatar for Greenthumb

Hi everyone, i was hoping i could find some help here. I am trying to get settings i have written into a textfile to be put in an array. Here is what is in the txt file: 8 44100 1 2 1 I read the textfile with: pStream = new …

Member Avatar for Greenthumb
0
122
Member Avatar for rkarimi

Hello, I need to allocate memory dynamically for arrays in FUNCTIONs (Here for R), but I can not use that memory in my main function Thank you so much [code]typedef float MYFLOAT; // or Called Standalone #define MYPRINT printf #define MYMAIN main #include <string> #include <cstdio> #include <cctype> #include <stdio.h> …

Member Avatar for amt_muk
0
126
Member Avatar for Jaguar

I have just started a basic class in programming and I am totally lost. Can someone help me out? I have to write pseudocodes and create flowcharts and don't have a clue. I need help. Create flowcharts and pseudo-code for the following problems: 1. You're trying to figure out where …

Member Avatar for Dave Sinkula
0
97
Member Avatar for gimmy

hi there is someone that can say me what kind of character from the COM1 when i connect eb600&eb500 to my laptop are them? i receive this kind of character ××××××××××Ö××××××××××ÖÖ××Ö××××××××××Ö×××Ö×ÖÖ××ÖÖÖÖÖÖÖÖÖÖÖÖÕÖÖÖÕÖÖÖÖÖÖÖÖÖÕÖÖÖÖÖÖÖÕÕÕÕÕÕÕÔÕÕÕÓÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÔÓÓÓÓÓÓÓÓÓÓÓÒÒÓÓÒÒÓÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÑÒÒÑÑÑÑÑÑÑ

Member Avatar for gimmy
0
108
Member Avatar for Mr.

Sorry, posted this in the wrong forum. Original message content deleted. Posted here: [url]http://daniweb.com/techtalkforums/threadedpost127370.html#post127370[/url]

0
90
Member Avatar for hemanth.balaji

Is there a way I can put an image on the menu bar thing as shown in the image provided in the link. I have uploaded a snapshot of my project intending to show you exactly where i want the image to be. Please lemme know soon

0
132
Member Avatar for mohsin

hello guyz i wana implement ftp server using linux .. c based code is required plz help me out ..

Member Avatar for mohsin
0
175
Member Avatar for swets_here

If your input is "abc". What would be the logic to accept the strings, bca,acb,bac,cab,cba,abc (ie. the same string with chars placed in any order) and reject all other input strings like aab, cdb, xyz etc ? Note: The reference string("abc") is not fixed, logic should work for any constant …

Member Avatar for winbatch
0
181
Member Avatar for ....

Hi, I am a systems engineer/administrator and therefore new to programming and wanted some help pls... I dunno how long it would take to program, if it could be done at all, but could someone please create a small program to vnc pc’s automatically or provide me with step by …

Member Avatar for kc0arf
0
120
Member Avatar for a7la_lolly

pleaaaaaaaaaaaaaaaaaaaas i want the siluotion of this qustion b coz i have an exam after two dayes in pseudo-code and algorithems * write the pseudo-code to convert an arbitrary binary number to it's two complement representation and i need more exampels in this form about write the pseudo-code of any …

Member Avatar for Dave Sinkula
0
116
Member Avatar for skprasat

printf("\nThe Result is : %s %s %s %s %s %s %s %s\n",var[0],var[1],var[2],var[3],var[4],var[5],var[6],var[7]); while executing this i get correct result upto var[4].... and for var[5] and var[6] im geting some garbage valuess, then for var[7] im getg my result... whats wrong in my code.....

Member Avatar for winbatch
0
54
Member Avatar for jonnie83

With the following line I get a syntex error relating to the ifstream file [code]if ifstream file(filename.c_str()).find string1 ++counter;[/code] I have already declared the input file and do not understand why there is an error. Sorry for seeming dumb but I am new to this!!

Member Avatar for Dogtree
0
206
Member Avatar for maherddd

I would deeply appreciate it if someone can help me with this program because I have no idea how to do it and I need to get it done very soon. I appreciate any bit of help ,and thank you all _________________________________________________________________ Write a program that simulates rolls of two …

Member Avatar for Dave Sinkula
0
197
Member Avatar for typek

I'm searching for some resource script editor where can i make menus and dialogs and save it to the *.rc files. Just like one in Visual studio, but free. I found only editors exporting *.res files that are unusable (in Dev-Cpp). Do you use Visual Studio, or something else? Thanks …

Member Avatar for typek
0
142
Member Avatar for hemanth.balaji

I want to implement "whats this" functionality as seen in most of windows programs. For example -> When you right click on desktop and select properties and when u again right click on the properties dialog you get a pop up menu with "whats this". When i click on that …

Member Avatar for xiaoyueer
0
74
Member Avatar for skprasat

Hi all, im new to this..... i want to send a doube to client...so im convt that to char and sendg that...it prits d exact value in server, but in client it doesnt print the decimal value... it just display like '123.' my code looks like.... [code] struct sockaddr_in server; …

Member Avatar for Dave Sinkula
0
246
Member Avatar for letmec

Hello onces again to all of u I want to how can i get all the drives on a computer. It will very kind of u if u provide with a simple code.. Thanku

0
59
Member Avatar for hemanth.balaji

Hello, This is Bob from Bangalore, India. I have a doubt . I have a logo . I wanna display it in the project I made. But it is not happening. It worked ina a simple window program. But when I ported the same code in the below application which …

0
107
Member Avatar for amsnme

hi....can anyone pliz tell me how to go about converting numbers to letters on a telephone keypad...... eg when we txt..and suppose we type in 4663,we can get hood,home,good,gone....etc... got a project due!!!!!!!!! prefer it in C

Member Avatar for Dave Sinkula
0
207
Member Avatar for calibill

Hey everyone, I am a true beginner programmer, in the crunch of finals week. I need to create a GPA calculator and I am having some difficulties. Anyone who can should help me!!!

Member Avatar for Dave Sinkula
0
171
Member Avatar for Shadow13

The End.