76 Discussion / Question Topics
Remove Filter Hello there, I have here a problem with the function open(). Since its first parameter asks for a char*, how would i convert wchar_t* to char* if my program asks for a wchar_t* as its path rather than char*? | |
hi there, i just want to know what function to use in converting a char into an int like: [code] char temp; cout << "enter something"; cin >> temp; atoi(temp); [/code] is this the right way? | |
Hello, there. I'm having trouble with the initialization of variable of type sem_t. I used this. [code=c++] sem_t example; example = NULL; if(example == NULL){ /* code here */ } [/code] I'm getting the error, "no match for operator ==". What value do you think I should place in the … | |
Hello there! can anybody here point me to any GUI programming in Linux tutorials. Been googling around but no good hits. Thanks. | |
I know you have a lot of favorites. Just for fun. Mine would be...fix me..hehe.. What about yours? | |
Hello there. What is usually the reason of getting an undefined reference error? I have already included the [B]pthread.h[/B] header file yet I'm still getting the undefined reference error for the [B]pthread_create() [/B]function. *sigh*. I'm using makefile in compiling my code. Is there someone here who could enlighten me? Thanks! … | |
hello there, i just want to ask...how would i apply threading to a web server app?? my problem is, i dunno how to create a web server...i created a simple server that sends hello world to a client that sends a request...how would i apply threading to this one?? | |
Let's create a story out of our wildest imaginations. I'll start it out then you continue. The rules... The last poster should have a hanging ending of his line so that the next poster can continue. Here we go. Once upon a time, there lived a mighty prince who loves … | |
Hello there. How would you know if the DVD you have written is finalized? Do you have any idea of a software/CD-DVD utilities that could determine if the DVD you burned is finalized or not? Thanks! | |
Hello there, is it possible for javascript to lock a mouse when you click on a button or a div? I was doing some google search but I failed to find a script for locking a keyboard or mouse. I just would want to add this feature on my site. … | |
Hello there. Is there someone kind enough to please explain to me the difference of using fork() and exec() with system() in invoking a process. I just want to know their difference according to well experienced with processes here. And what is the most efficient in invoking a process between … | |
Hello there! Is there any way you can create a file with no extension with a size of 700mb? I tried using the [I]edit[/I] tool in the command line but it can't create that size. Thanks! | |
I was just thinking how would we call our farts if ever they do have a kind. Well, I came up with 3 kinds of 'em. [B]Loud and Proud[/B], [B]Silent but Deadly[/B] and the ultimate, [B]Wet and Wild[/B]. Which of these 3 you produce the most? hehehe... | |
Hello there! I come across this function and I was having a hard time dealing with it because it has two function prototype. [B]int swprintf(wchar_t* buffer, const wchar_t* format[, ...argument])[/B] and [B]int swprintf(wchar_t* buffer, size_t count, const wchar_t* format[, ...argument])[/B] I used the first one in Windows and it worked … | |
Hello there. I'm having some sort of a problem with my text editor. It cannot read Japanese text. Is there any way or any available software in Linux that could convert these text? It all appear as junk. | |
Hello there, is there a corresponding standard library function for the win32 function _mbsbtype()? Thanks! :) | |
Hello there, I'm currently at the peak of my coding when I suddenly experienced this really really weird behavior. My compiler (gcc) tells me that one of my functions are not declared in the class (which resides in my .h file). I used the same global variable object to the … | |
Hello there, do you have any idea how to get the user default language code id using standard library functions? There is in win32 (GetUserDefaultLCID) but I have to port it into the linux platform. Thanks :) | |
Hello there, do have any idea if there is a function that gets wchar from the stream, somewhat similar to fgets function. Thanks. :) | |
Hello there, is there a function in Linux that can handle the reading of an .ini file? Thanks. | |
Hello there, any idea what function in the standard library corresponds to these win32 apis (GetPrivateProfileInt and GetPrivateProfileString). Thanks. :) | |
Hello there, I have here a bit of confusion with fread. I have here a .cue file generated in windows. I tried to read through the entire file in windows and when I printed the buffer, it gives me the correct content of the file, but when I read it … | |
Hello, there. I just would like to ask any other possible ways to read wchar_t data in a file? I tried to use ifstream but it seems that the '>>' operator cannot be used to unsigned short variables with the likes of wchar_t. Thanks. :) | |
Hello there. Is there anyway that you can convert the '\n' in windows which is 2bytes to the '\n' 1byte so that the linux could read it? | |
I was advised by a friend of mine to use fread64, fwrite64 instead of fread and fwrite. Does this exist? Been looking for it's documentation but I haven't found one. | |
Hello there, I'm currently encountering a strange error which is I don't know why or could this one be possible. I have several for loops inside a function and I used the iterator outside the said loop, but I do get this error which is kinda strange. [code] error: name … | |
hello there, uhhmmm...anyone here could give me an idea or point me a reference on how web server application are created (console based) using c++...i'd be using threading, processes, synchronization and http protocol... a reference to any website or books would be nice...thank you... | |
Hello there, do you have any idea what is the corresponding function of this Win32 api (GetDiskFreeSpace) in standard library? Thanks. :) | |
Hello there, do you have any idea where to get a good reference for the function fseek64? Or does anyone of you here knows this function or is there really a fseek64 function? lol. Thanks! | |
Hello there, I would just like ask what to use if you want to know if a variable is of type wchar_t* or char* using it in a flow control statement. Would this work? [code=c++] void Check(void* pVarToCheck){ if(sizeof(pVarToCheck) == sizeof(wchar_t))){ cout << "Variable is wchar_t*" << endl; }else if(sizeof(pVarToCheck) … | |
Do you have any idea what functions to use in standard library to replace these Win32 functions (GetPrivateProfileInt and GetPrivateProfileString)? Thanks! :) | |
Hello there, I've been messing around with threads these days. Currently, I'm having problems with one of my variables of type [B]pthread_cond_t[/B] (let's call it variable [B]Z)[/B]. I made a class (let's say class [B]X[/B]) , and you guessed it right, [B]Z[/B] was declared in it with private access level. … | |
Hello there, I have here a problem with the compilation of my program. The compiler tells me that my typedefs are redefined, but I defined it only once. Ok, heres the score, I have here a header file (let's name this as file X) that contains all the typedefs that … ![]() | |
Hello there, I have a problem that's been bugging me. I scanned my pc using my Semantec anti virus by right clicking on the drive and simply choose the scan for viruses option. To my surprise, the usual scan status window ( that window that shows up the time, items … | |
Hello there, do you have any idea of what is the corresponding standard lib function of Win32's WideCharToMultiByte()? Thanks! | |
Hello there, I'm having trouble finding the corresponding linux function of win32's SetFilePointer(), ReadFile() and WriteFile(). Do anybody here have any ideas on what to replace or use. Thanks. :) | |
Any of you here knows the corresponding structure of CRITICAL_SECTION in linux? thanks. | |
Hello there. I just want to ask some simple explanation about multithreading in this situation. Suppose I have two CD/DVD drives and an applicaton that enables me to control these two drives. This application uses multithreading. How would this thread be implemented or what is the help that this multithreading … | |
Hello there, I have here a program that reads a txt file taking each word in three columns separated by a comma and storing it to a vector. It has a filter that whenever it sees a comma, it seperates the word from each other. My problem is, whenever I … | |
Hello there, is there anybody here who has experienced programming in Multimedia Commands with c++? I have here an application in Linux that controls the cd/dvd drive using SCSI2 - Multimedia Commands set. I have a bit of bewilderment. Right now I'm debugging an error in opening the drive tray … | |
Hello there, do any of you here know any interface that will write to a file in MFC like the ofstream. thanks :) | |
Hello there, is there a corresponding function or struct in linux for the the struct SystemTime in windows? Thanks! :) | |
hello there, do anybody here have an idea of the Linux version of the GetTickCount() function. thanks! :) | |
hello there, can anyone here explain to me and an explanation on the usage of these operators (<< and >>) or point me to any site that explains it very well... thank you... :) | |
hello there, i just want to ask what is the difference of having your IDE CD/DVD drive in /dev/sd0 rather than in /dev/hda? my friend and i have the same kernel version and distro (Ubuntu). the only difference is, my hard drive is detected in the file system of /dev/hda … | |
Hello there, I'm creating a cd writer application. As of now, I was able to create a data burning application for cd-r/rw. I'm having trouble finding the code block for writing audio cd. I'm using cdrom.h and the command for writing data is CGC_DATA_WRITE together with GPCMD_WRITE_10, I looked for … | |
hello there, can someone here with a kind heart to explain to me how the struct request_sense sense errors when you use the cdrom.h. thanks! | |
I committed a typographical error in visiting a site. I was directed to this site -> [URL]http://www.freewebs.com/gulong[/URL] which has junk characters that looks like a virus T_T. I scanned all my drives, but no viruses where found. I'm paranoid because the server's firewall might have detected, if there was, a … | |
Hello there, anyone here knows what is the function or library in Linux that corresponds to the win32 functions/library given bellow. library - #include <Windows.h> functions - GetDiskFreeSpaceEx()、GetFileAttribute()、GetModuleFileName()、GetFileVersionInfoSize()、GetFileVersion( ) Thank you! | |
Hello there, is there a scsipt.h version for Linux? I've been looking for this because I really need that header file. |
The End.