I got a problem with my project with FILE open in my project so I have created a sample project in Visual studio 2005 which is a Visual C++ CLR Console Application and write this pretty simple code and test the file handilng but it's not working and give me couple of compilation error.
#include "stdafx.h"
using namespace System;
int main(array<System::String ^> ^args)
{
Console::WriteLine(L"Hello World");
FILE* test = fopen("C:\\test.txt","rt");
return 0;
}
No I switched to use a clr due to an issue I got with memory allocation with the outside code I'm using with my project and I'm restrict to use clr right now. In my project I'm got number of errors in one of the class cpp and .h files. When I include stdio.h at the top all the errors comes with FILE get removed but with the header file of that class still gives me the error with FILE*.
In other words, instead of actually fixing a problem, lets try a different approach that is also not properly understood...
Given sufficient time and enough random attempts.......(Hey where did my mokies go?? )
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!) 2008, 2009 In theory, there is no difference between theory and paractice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
Yeah.. I figured it out. I was a mistake since I just added number of files from my unmanaged source code using add existing items. I have added a new class and looked at the clr classes and I figured out a text was missing and I add that and add the stdio.h file and compiled. Then bunch of errors and that was about my library issue and right now no error...
Bookmarks