15,551 Topics

Member Avatar for
Member Avatar for Merrissey

Lets say I have the following as a string: 097102099105110 What I want to do is find the ascii character represented by every set of 3 digits. So the ascii character of 97, then 102, 99, 105 and then 110. Could anybody point me in the right direction here?

Member Avatar for Dave Sinkula
0
237
Member Avatar for Zackery

Ok so I have this program and Im using 2 functions that both use "buffer" to move the images to the front screen. Well I used create_bitmap(800,600) to make the buffer, but im using that in both functions so, they both are diffrent buffers! So when I run the program …

Member Avatar for Dave Sinkula
0
134
Member Avatar for elek

Hi, I have a program and i cant seem to get it to work. I need to write a program that can take up to 50 strings and then reverse them... The actual question is: Write a program that will prompt the user for two strings of characters(each string has …

Member Avatar for elek
0
178
Member Avatar for yonoid

I have a problem with some controls, in order to make the aplication more attractive i put a Bitmap in the back, but then i have a big problem, 'cause the control aren't transparent so they have an awfull gray rectangle. Coul some one can tell me how can i …

0
81
Member Avatar for sameersbn

hello everybody! i am developing a client/server application for streaming audio in linux.. i have already implemented the mp3 player and buffering... could anybody tell me how to create threads so that the child process continues to receive the audio buffer packets while the decoding of the received buffer is …

Member Avatar for Dogtree
0
69
Member Avatar for JohnHull

Write C functions to perform the following tasks: Given a sorted double array x[i], i=0 to n and a double t, write a function which uses a binary search algorithm to find k such that x[k ¡ 1] < t <= x[k]. Many thanks for your help!

Member Avatar for JohnHull
0
136
Member Avatar for Narue

For those of you who don't know, Daniweb has an IRC server. I'm there a lot, and I don't see any of you. That's not good because I'm there, of course. Real time chat with the resident guru ([B]shamless[/B]) will make you smarter ([B]utterly shameless[/B]) and cooler ([B]words cannot express …

Member Avatar for Dave Sinkula
0
142
Member Avatar for rkarimi

/* I'd like to read some data from hard disk & then manipulate them as const variables. Here a simple version is attached. I do not know how to Initialize a const array by FUNCTION */ [code]#include <stdlib.h> #include <stdio.h> int *MAKE(const int n,int i) { int V[n]; V[0]=10*i; V[n-1]=2; …

Member Avatar for Dave Sinkula
0
105
Member Avatar for maldini

Hi Does anyone know why the following code causes me a memory leak: [code]HGLOBAL hGlobal = GlobalAlloc( GMEM_FIXED, aJpegSize ); void* p = GlobalLock(hGlobal); memcpy((char *)p,imageptr,aJpegSize); GlobalUnlock(hGlobal); IStream* pStream = NULL; if ( CreateStreamOnHGlobal( hGlobal, TRUE, &pStream ) == S_OK); { if ( aPicture == NULL ) delete aPicture; aPicture …

Member Avatar for maldini
0
133
Member Avatar for stage

Hello, im new to C and I'm stuck with a program. I now use this code to change some numbers [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #define relays 8 int main(int argc, char *argv[]){ int relay = 0; if (strtol(argv[argc-1], NULL, 10)) { if (strlen(argv[argc-1]) <= relays) { int a; …

Member Avatar for stage
0
96
Member Avatar for hemanth.balaji

Hi guys, How do you implement ACDSEE like file switching within a current directory using win32 Api. As in, in my project I am reading a "DICOM" file as input and now I want a way in which I can view the next file by just clicking on a "Button" …

0
57
Member Avatar for frederickade

[SIZE=3]I want to determine CPU usage of a application running in a windows Embeded NT platform.With regard to this i have already tried using Performance counter of the CPU to determine ,but its not working in Embeded NT..so..pls.. Can anyone help me out..its very URGENT... :!: [/SIZE]

0
66
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
72
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
74
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
160
Member Avatar for happyshub
Member Avatar for happyshub
0
198
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
90
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
80
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
10K
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
111
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
133
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
133

The End.