55 Archived Topics

Remove Filter
Member Avatar for jaepi

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*?

Member Avatar for epolgar
0
10K
Member Avatar for jaepi

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?

Member Avatar for WaltP
0
1K
Member Avatar for jaepi

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 …

Member Avatar for sfault
0
634
Member Avatar for jaepi

Hello there! can anybody here point me to any GUI programming in Linux tutorials. Been googling around but no good hits. Thanks.

Member Avatar for CasTex
0
134
Member Avatar for jaepi

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! …

Member Avatar for Kjah_C++
0
148
Member Avatar for jaepi

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??

Member Avatar for smitz
0
124
Member Avatar for jaepi

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. …

Member Avatar for MidiMagic
0
436
Member Avatar for jaepi

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 …

Member Avatar for Nick Evan
0
323
Member Avatar for jaepi

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 …

Member Avatar for Salem
0
95
Member Avatar for jaepi

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.

Member Avatar for jaepi
0
82
Member Avatar for jaepi

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 …

Member Avatar for jaepi
0
889
Member Avatar for jaepi

Hello there, do have any idea if there is a function that gets wchar from the stream, somewhat similar to fgets function. Thanks. :)

Member Avatar for jaepi
0
148
Member Avatar for jaepi

Hello there, is there a function in Linux that can handle the reading of an .ini file? Thanks.

Member Avatar for jaepi
0
1K
Member Avatar for jaepi

Hello there, any idea what function in the standard library corresponds to these win32 apis (GetPrivateProfileInt and GetPrivateProfileString). Thanks. :)

Member Avatar for vijayan121
0
166
Member Avatar for jaepi

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 …

Member Avatar for ithelp
0
131
Member Avatar for jaepi

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?

Member Avatar for vijayan121
0
167
Member Avatar for jaepi

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.

Member Avatar for jaepi
0
2K
Member Avatar for jaepi

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 …

Member Avatar for vijayan121
0
131
Member Avatar for jaepi

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...

Member Avatar for harshalone
0
153
Member Avatar for jaepi

Hello there, do you have any idea what is the corresponding function of this Win32 api (GetDiskFreeSpace) in standard library? Thanks. :)

Member Avatar for jaepi
0
236
Member Avatar for jaepi

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!

Member Avatar for jaepi
0
1K
Member Avatar for jaepi

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) …

Member Avatar for jaepi
0
988
Member Avatar for jaepi

Do you have any idea what functions to use in standard library to replace these Win32 functions (GetPrivateProfileInt and GetPrivateProfileString)? Thanks! :)

Member Avatar for jaepi
0
179
Member Avatar for jaepi

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. …

0
386
Member Avatar for jaepi

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 …

Member Avatar for GreenDay2001
0
212
Member Avatar for jaepi

Hello there, do you have any idea of what is the corresponding standard lib function of Win32's WideCharToMultiByte()? Thanks!

Member Avatar for jaepi
0
146
Member Avatar for jaepi

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 …

Member Avatar for Tricci
0
85
Member Avatar for jaepi

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 …

Member Avatar for jaepi
0
128
Member Avatar for jaepi

Hello there, is there a corresponding function or struct in linux for the the struct SystemTime in windows? Thanks! :)

Member Avatar for Ancient Dragon
0
120
Member Avatar for jaepi

hello there, do anybody here have an idea of the Linux version of the GetTickCount() function. thanks! :)

Member Avatar for jaepi
0
3K
Member Avatar for jaepi

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... :)

Member Avatar for jaepi
0
99
Member Avatar for jaepi

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 …

Member Avatar for jaepi
0
180
Member Avatar for jaepi

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 …

Member Avatar for jaepi
0
110
Member Avatar for jaepi

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!

Member Avatar for jaepi
0
707
Member Avatar for jaepi

Hello there, is there a scsipt.h version for Linux? I've been looking for this because I really need that header file.

Member Avatar for jaepi
0
45
Member Avatar for jaepi

Hello there, just a question, what do you think is the purpose of this flag to this block of code... [code=c++] void CDriveControl::Trace(bool bAt, char *lpszFormat, ...) { #ifdef _DEBUG va_list args; va_start(args, lpszFormat); printf(lpszFormat, args); if( bAt) { fflush( stdout); } va_end(args); #endif } [/code] I've been wondering, why …

Member Avatar for jaepi
0
201
Member Avatar for jaepi

Hello there, I've encountered a syntax in one of the examples I'm studying. [code=c++] *pStatus = *pStatus | DC_ST_DISK_IN | DC_ST_TRAYCLOSE | DC_ST_WRITING; //<--notice the "|" [/code] Is this a form of piping? Like in bash script in Linux which supports piping in there commands? uhmmm.. What does it imply, …

Member Avatar for jaepi
0
171
Member Avatar for jaepi

Hello there, I've been googling around about the definition of SPTI (SCSI Pass-Through Interface). It is somehow related to c++ since it is use to manipulate a drive using the c++ language. Is someone here knows the definition of SPTI, or simply explain to me briefly what it does. Thank …

Member Avatar for jaepi
0
162
Member Avatar for jaepi

Hello there. I have here a constructor of class CDriveControl and class CSPTIDriver.. [code=c++] class CSPTIDriver; class CDriveControl{ public: CDriveControl(); CDriveControl(const char* pPort); ...... ...... protected: char* m_pPort; CSPTIDriver* m_pSPTIDriver; bool m_bInitFlag; bool m_onlycomp; } [/code] It was defined outside the class. [code=c++] CDriveControl::CDriveControl(void) :m_pPort(NULL) //Object drive ,m_pSPTIDriver(NULL) //SPTI object …

Member Avatar for jaepi
0
304
Member Avatar for jaepi

Hello there, I'm currently practicing network programming under Unix system. I have here a sample code from the tutorial. I compiled it, it has no errors. But when I execute it, it prompts me this "connect: Connection refused". What do you think is the problem. Here's my code: [code=c++] #include …

Member Avatar for jaepi
0
184
Member Avatar for jaepi

Hello there, I'm currently working on to some interface using gtk. I'm using PuTTY, doing programming remotely, cause I was told not to use the Linux server unit for surfing, so I'm using the windows unit for internet surfing and at the same time programming by the use of PuTTY. …

Member Avatar for pheeror
0
200
Member Avatar for jaepi

Hello there, I've been studying c++ for about a month. Currently, I'm indulging my self to pointers to be used in classes and functions because i have to familiarize myself with threading. Any of you here knows some good tutorials in threading, preferably html based tutorials. Or, suggestions on what …

Member Avatar for jaepi
0
126
Member Avatar for jaepi

Hello there, I'm practicing structures and accessing data in a structures. I have here a program that gets an input of string and int from a user. I placed it inside a loop where every time the loop refreshes, it changes the information it gets. My problem is, how do …

Member Avatar for jaepi
0
121
Member Avatar for jaepi

i have here a code that uses pointers to manipulate data in a class...i have a problem of how to show them on screen...i think im using an erroneous syntax...lol... [code=c] #include <iostream> #include <string> using namespace std; class MyClass{ public: string first_name, last_name, id_no; int age; }; int main(){ …

Member Avatar for jaepi
0
212
Member Avatar for jaepi

hello, there... how would you send a signal to end this loop [code] string s; int counter; while(cin >> s){ counter++; } [/code] thanks...

Member Avatar for jaepi
0
51
Member Avatar for jaepi

hello there...is there a way to check if the file you get is the file you really want...like for example, you want an .iso file, if yo placed any file like .txt, the system will exit...but if you placed a file with .iso extension, it will continue to run...thanks...

Member Avatar for Salem
0
117
Member Avatar for jaepi

hello there, in what way you can convert an integer to a char?? i'll use it to check if the user's input is a number, if it is a letter, it will allert him to try again and input a number...the integer will then be use for a 'for loop...thanks

Member Avatar for WaltP
0
163
Member Avatar for jaepi

hello there...i've been using this function to know if the input of the user is a number or a letter...but it's not working... [code] #include <iostream> #include <math.h> using namespace std; double temp2; int main(){ cout << "\n enter something"; cin >> temp2; if(isnan(temp2)){ cout << "not a number \n"; …

Member Avatar for thekashyap
0
119
Member Avatar for jaepi

hello there, im new in c++...i just want to know how to compare a string to null like: [code] string x; cin >> x; if(x==NULL){ cout << "null"; } [/code] im using this one, [b] if(&x==0) [/b]...but it does'nt work... this is what my mentor told me to do... help..thanks

Member Avatar for ~s.o.s~
0
9K
Member Avatar for jaepi

hello there, i have no idea how to check if a directory in linux already exist, can someone point me an example..pls..thanks

Member Avatar for jaepi
0
157

The End.