Program in C Language - How to include a file directory for text file to complie
I have a simple C program going in my Microsoft Visual C++ 2010 Express which simply is: int main(int argc, char *argv[]) {int n;FILE *ifp;ifp = fopen(argv[1], "r");fscanf(ifp, "%d",...
View Articleambiguous symbol
Trying to compile a C++ WinForms Winsock related project with /clr option I get a few errors after adding #include <winsock2.h> statement. The reference is to a different header file: servprov.h....
View ArticleVery slow linking process in VS C++ 2012
Hi, I would like some guidance and help for a problem we're facing in VS 2012 (C++ native project). We had been using VS2010 for our project, and recently we'have upgraded to VS2012. Now we're facing a...
View Articleconfused about the result?
char str[]="hello people"; char *p=&str[0]; char *tem=&str[1]; printf("p=%p\n",p); printf("*p=%c\n",*p);hi,I'm confused about "%p". I searched about it. it is about a address. Then I tested it...
View ArticleIntelliSense in C++ vs. in C# - Not even close? Is that intentional? (VS2013)
Quick background, I spent a number of years doing Matlab before jumping into C# and being blown away by how good the IDE is, and how descriptive and obvious all the IntelliSense appears to be. All very...
View ArticleI am working in vc++(MFC) code which supports multibyte character set. I...
error C2664: 'CreateProcessW' : cannot convert parameter 2 from 'char *' to 'LPWSTR'void extract_features(char *path4, int i) { char *t = new char[500]; char *g = "d:\\dll\\extract_features.exe...
View Article"Not enough storage is available to complete this operation (0x8007000e)"...
We have COM component deployed in COM+ (Win XP) to interact with SQL Server.All operations goes smooth and suddenly sometimes, creation of the COM component deployed in COM+ fails.The CoCreateInstance...
View Articlehow to give if condition for date and time
hi guys i want to give if condition from start time to end time...like 1PM to 2PM or every time between 1PM to 2PM how should i do that?
View ArticleImporting a DLL into a static library
So, i have a DLL that i have tested and i am able to use it. (i do not have the source code, only the .lib and the .dll ).I would like to create a wrapper around the functions and make a static library...
View Articleerror C1189: #error : ERROR: You must use a GNU Compiler.
Hi everyone!I have just ran into an error in which I don't know how to resolve. I'm trying to compile some code I have but it gives me the following : error C1189: #error : ERROR: You must use a GNU...
View ArticleHow windows handle copy and paste of file or files
I am curious to know how computers execute "copy" and "paste" of small & large folders. I've read that copy and paste of text between different processes or same process is achieved by saving the...
View ArticleUSB Serial Virtual COM port : Read not working
Hello,I use embedded hardware (by TI : Piccolo Control Stick xxx69) which uses FTDI usb to serial converter hardware.On PC, I have simple VC++ application which tries to communicate to hardware over...
View Articlewhich headders file i have to include for tinyxml
hi i am storing my output in tiny xml in vc++..it is my code for storing output but i still dnt get headers and library files for it.. TiXmlDocument doc; TiXmlDeclaration * decl = new...
View ArticleThis is confusing
Right at the beginning of this excellent article by Scott Meyers you'll find this table:From the first line above the author states that "&&" in Widget&& var1 = someWidget; is an rvalue...
View ArticleQuestion regarding proper usage of CoInitialize/CoUninitialize for program...
Under VS2005, I developed a unmanaged C++ EXE (that also uses MFC in a Shared DLL) that calls our C# DLL assembly. Both the C# DLL and C++ EXE were built based on the information provided at this...
View ArticleError: CCSIDispatch COM interface (csdatabase.table)
Hi, A piece of code at the end of the program seems to be causing an error during runtime. When this code is commented out there is no error but when it is in the program I get the errorheap...
View ArticleUsing old header files
Hi! Im a computer science majors beginner programmer and i've taken up "System programming" subject for which i have to use some old 16 bit headers. Namely "bios.h" and "dos.h". I have VS2013 x64....
View ArticleMemory leak while using SinkWriter (Media foundation) c++
I have been trying to write a small application which creates videos for you and you can send across your own images. For encoding the video I have used Media foundation library. Everything works...
View ArticleMFC : Can not update view when open firefox or chrome
Hi all I am from Viet Nam and I am a developer I develop a software which are based MFC Library and OpenGL I have a problem about GUI MFC. In my project. I use OnUpdateView(CmdUI * cmd) function to...
View ArticleThe download of the specified resource has failed
Issue: When client (IE or Web Client App) connect to https WebServer then urlmon.dll calls calback function with HRESULT -> 0x800c0008 The download of the specified resource has failed. 1....
View Article