I have an application written in C on Solaris that I have to port to Windows XP. I would like to know that what are the libraries availabe to achieve this task.
Also what is the best GUI development tool for the same and what are the steps to follow to achieve this all.
...
I opened php_sqlite.dll & php_sockets.dll using Depends.exe. I saw only 1 function in both: get_module
How can I export all functions in extension to dll files when compiling the .dll? AFAIK, ZEND_FUNCTION is used to declare functions in the modules. Please kindly advise. Thank you very much!
...
Hello,
VS 2008
I have the following code
#define PROC_ADD
void main(void)
{
while(1)
{
#ifdef PROC_ADD
// Do this code here then undefined it to run the code in the else
// processing work
#undef PROC_ADD
#else
// now that PROC_ADD has been undefined run this code
// processing work
#endif
}
}
However, it will run the c...
I have a struct which contains a member called char *text. After I've created an object from the struct, then how do I set text to a string?
...
guyz i need to pass an integer array from lex to yacc.i know v can pass an integer using union of yylval but how to pass an array ...pls help me
...
Hello,
I'm going take a class on "Delegates and Callbacks" to students who are learning level programmers. They have basic c/c++ & c# background. Instead of directly showing how to use them. I want to show "Why Function Pointers?" first. I want to start with an example situation and ask them "How will you do this"? and make them realize...
After reading the article "Back to Basics" by Mr.Spolsky I have thought about string structure in C, that converges most of advantages of Pascal-style string (with length byte) and classic ASCIIZ-strings in C and reduces most of their disadvantages. The main demand is to make this new string effective in machine commands. (for this task ...
I have a small project in C# (Microsoft Office Access). I can read and save now.
I now need to allow the user to use the new database project but structered like the working one, and also to do "save as".
Besides I need to export to a text file/CSV.
Any idea or sample?
...
How can I tell if a read socket buffer is full or a write socket buffer is empty?
Is there a way I can get the status of a socket buffer without a system call?
UPDATE: How about this: I'd like to get a callback or signal when either the read socket buffer is full or the write socket buffer is empty. This way I can stop processing to al...
http://msdn.microsoft.com/en-us/library/6e3b887c%28VS.80%29.aspx
is there a way to have more than 2048 open files at a time per application using _wopen.
32 or 64 bit OS – same limit!
...
Can the Waf build system generate Visual Studio project files for C/C++?
...
Hi,
I would like to create a array of in_addr using gethostbyname(). After looking on Google, I have found this short code (at http://www.logix.cz/michal/devel/various/gethostbyname.c.xp):
/*
* gethostbyname.c - Example of using gethostbyname(3)
* Martin Vidner <[email protected]>
*/
#include <stdio.h>
#include <netdb.h>
#include <n...
Hi. I'm pretty sure I'm doing nothing wrong, but thought I'd ask anyway.
We have:
struct some_struct **array_of_ptrs = calloc (num, sizeof (struct some_struct*));
Now assume I just point each of these pointers in the 'array' to a struct some_struct. Now surely to free up the memory, I just do:
free (array_of_ptrs);
Surely this is...
Is it necessary to #include some file, if inside a header (*.h), types defined in this file are used?
For instance, if I use GLib and wish to use the gchar basic type in a structure defined in my header, is it necessary to do a #include <glib.h>, knowing that I already have it in my *.c file?
If yes do I also have to put it between the...
Dear Stackoverflow,
Once upon a time, a team of guys sat down and wrote an application in C, running on VMS on a VAX. It was a rather important undertaking and runs a reasonably important back-end operation at LargeCo. This whole shebang works so well that twenty-five years later it's still chugging along and doing it's thing.
Time pa...
I am looking for an open source Natural Language Processing library for c/c++ and especially i am interested in Part of speech tagging.
...
I have a function defined as the following (in C):
gchar **Scan_Return_File_Tag_Field_From_Mask_Code (File_Tag *FileTag, gchar code)
{
switch (code)
{
case 't': /* Title */
return &FileTag->title;
case 'a': /* Artist */
return &FileTag->artist;
case 'b': /* Album */
...
This should be easy to answer to anyone familiar with C. I want to display the previous values of a variable (receive register of a UART (RS-232) on a microcontroller) on an LCD. This is my current implementation and it works ok. But I'd like to know if there is a way to spend less time in my interrupt routine. Currently, the peripheral ...
Is there a way to get all the elements of a structure, so I can use them and perhaps iterate over them and print them ?
...
I'm writing C code for an embedded system (dsPIC33 platform), and I'm considering building up a reusable code library to use among multiple projects.
What are the best practices for tying the library to each project?
Obviously the library will have some hardware-specific (and thus project-specific) dependencies, so it's reasonable to a...