Omgili - forum search, search forums  
  

Discussions about basic c code

Displaying 1 - 10 out of 67,252 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
Hi all, I'm trying to learn how to use managed/unmanaged code interop, but I've hit a wall that 4 hours of googling wasn't able to get over. I put together 2 projects in visual studio, one creating a win32 exe, and one creating a windows forms .NET application...
Started by on , 3 posts by 3 people.  
Try importing your function into .NET code as [DllImport.
You have declared your function as extern "C" which means it uses cdecl as its of your code crashing.
code into a DLL.
Anyone manage to write code that uses the mysqlclient library? I can get compiling working but not linking :( XCode produces the following output: Build TestMysql of project TestMysql with configuration Debug Ld build/Debug/TestMysql normal x86_64 cd ...
Started by on , 3 posts by 3 people.  
Alternate methodology: Have you considered just using the Makefile you made in XCode? File->New Project->Other->External Build ... .
I believe the "" string is causing you grief -- especially since the error message's filename is the empty string .
My knowledge is very limited on VS in fact it's the first time I am using it and very little I know of C debugging too. I have pre-existing .c and .o files that have been transferred into my folder and I open VS to edit them. I then compile on a unix ...
Started by on , 3 posts by 3 people.  
You cannot use .....
Right click solution and hit build.
You should create a C project (you may have to use empty project) Add your c files to the project.
This assumes that your code is not dependent on anything.
This is a quess.
Ask your Facebook Friends
Hello, I am a newbie in programming and I want to write a program in Visual Studio with using C# language which uses a textbox and a button only. When the user writes string "A" in the textbox and presses the button, the program shows integer "5" in a...
Started by on , 6 posts by 6 people.  
Basic maths can do the rest :) Don't forget to convert to a Char rather than subtracting the Character insertered (A, B or C) to int, subtract 70, multiply it with -1 and Display the value.
Question 1) I have a navigation based application where clicking on an entry opens a second view with the details of that entry. It's working now with the following code [self.navigationController pushViewController:descriptionController animated:YES]...
Started by on , 3 posts by 3 people.  
Because UITextView doesn't conform to NSCopying....
In my controller class for the view I have: @property( nonatomic, retain) IBOutlet UITextView *textView; But if I change this to @property( nonatomic, copy) IBOutlet UITextView *textView; Then it crashes .
Do you recommend any good library or examples online for implementing an HTTPS client that can connect to a website using basic authentication? This is meant to run in linux servers. Any pointers help. Update: Question about the unanimous libcurl - does...
Started by on , 4 posts by 4 people.  
There's plenty of example code.
Libcurl supports both HTTPS and HTTP Basic Authentication.
For a project I'm working on, I need to have a lot of source code files generated from an interface description. That description is currently IDL (really, a pidgin IDL-like language), but I'm not married to it and am willing to consider alternatives....
Started by on , 4 posts by 4 people.  
There should be something similar took XDR because the language is pretty much the same from C for structs, for the task is basically port old code and we want....
In Windows midl.exe is there to generate COM code from IDL files.
Hi! Here's my code: #import <Foundation/Foundation.h> void PrintPathInfo() { const char *path = [@"~" fileSystemRepresentation]; NSLog(@"My home folder is at '%@'", path); } int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [...
Started by on , 3 posts by 3 people.  
For const char* you will want the....
Because you are using a C style string, you need to use the standard C string formatters OR convert the const char * back to an NSString using).
And asks it for a description to get a string to print.. .
Hi, i have been going through some code and came across a statement that somehow disturbed me. typedef GLfloat vec2_t[2]; typedef GLfloat vec3_t[3]; From my perspective, a statement such as typedef unsigned long ulong; Means that ulong is taken to mean...
Started by on , 7 posts by 7 people.  
Basically a typedef has exactly the same format as a normal C declaration, but it introduces be clearer if C syntax allowed it to be written as typedef GLfloat[2] vec2_t; typedef GLfloat[3] vec3_t been said, is the same an in a variable....
I'm working on sorting a list of objects, and unfortunately, I'm not quite getting the information from the debugging to see where I'm going wrong. I have a custom class that I implemented a CompareTo method in, and I call .Sort() on a List of items of...
Started by on , 9 posts by 9 people.  
Source: MSDN Your class should implement....
If a custom class or structure does not implement IComparable, its members cannot be ordered and the sort operation can throw an InvalidOperationException .
Try making your class implement the IComparable interface.
Page: 1   2   3   4   5   6   7   8   9   10  
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost