|
Well, if you don't answer my questions, it will be difficult to help you... Why are you mixing C++ and managed code ?
|
|
|
|
|
Cedric Moonen wrote: Why are you mixing C++ and managed code
i have no idea about Managed code.
i dont know a proper use of this.
so i think by mistake i do this.
Tell me any other solution for this.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
After 9 months you still don't know how to search the articles on this site? There are plenty of solutions for registry access.
Rajesh's suggestion is also good but you will have to study the documentation of the Win32 registry API.
Nobody is going to write the code for you.
|
|
|
|
|
Michael Schubert wrote: Nobody is going to write the code for you.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Being able to distinguish between managed and unmanaged code maybe a prerequisite.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
I have my application in MFC which is working fine on Windows Operating system.
Now i want to run the same application on Macintosh. I want to know do i need to make changes in my
code.
If yes what all things needs to be changed.
Or it can work perfectly alright without making any changes.
Thanks In Advance.
Dhiraj kumar Saini
|
|
|
|
|
Is it a console application using only standard C++ ? If yes, then the only thing you'll need to do is to recompile your application for MAC. Now if you are using things that are not cross-platform (like the MFC for instance), then you'll probably need to rewrite part (or everything) of your app. There are cross-platform GUI libraries like wxWidgets to do that.
|
|
|
|
|
Dhiraj kumar Saini wrote: I have my application in MFC which is working fine on Windows Operating system. Now i want to run the same application on Macintosh.
Your application will NOT work at all, on Macintosh. MFC is built around the Win32 API, which means it is not portable to another operating system than Windows.
If you want your application to work on multiple operating systems, then you must write it in plain C++, which should not contain a lot of operating system specific code.
For UI, you can use one of those open source frameworks, such as VCF[^], qt[^], wxWidgets[^], or something similar. Mind that you will have to compile it separately to build the specific binaries for each platform that you would want to deploy the app on.
In your case, it is not "changes" that you will have to make to achieve cross-platform execution, you must re-write your entire app.
PS: Your post looks ugly on my screen. Don't press the "Enter" key unnecessarily. The text will automatically wrap according to the screen resolution.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Thanks for the information.
|
|
|
|
|
What about Java?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Sounds like a plan. We can send him off the C++ boards then.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
HI..how to create a web server using CAsyncSocket in VC++(MFC)..plz help ...
|
|
|
|
|
tns_ranjith wrote: how to create a web server using CAsyncSocket in VC++(MFC)
By implementing the HTTP protocol[^].
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
Here is a very old (circa 1996) article that describes how to write an HTTP/1.0 server using MFC: "Write a Simple HTTP-based Server Using MFC and Windows Sockets" by Dave Cook, February 1996 issue of Microsoft Systems Journal, at http://www.microsoft.com/msj/archive/S25F.aspx[^]
|
|
|
|
|
|
Hello ,
I have defined a two dimensional array of type double in one of my MFC classes
in class 1:
double m_aCoefficients[10][20];
and now I want to make a pointer to this variable in another of my classes and assign address of this double array to that pointer.
so i have defined in class 2:
double* m_pCoefficients[10][20];
and in my CMyDoc Class I have tried this:
m_Class2.m_pCoefficients = (double*[10][20]) &m_Class1.m_aCoefficients;
but it gives error
Error 4 error C2440: 'type cast' : cannot convert from 'double (*)[10][20]' to 'double *[10][20]'
How can I resolve this?
thanks
|
|
|
|
|
|
Electronic75 wrote: double* m_pCoefficients[10][20];
Here you should have
double (*m_pCoefficients)[20];
After this you can write
m_Class2.m_pCoefficients = m_Class1.m_aCoefficients;
I hope it helps..
Regards,
Sandip.
|
|
|
|
|
Thanks Sandip It works fine
|
|
|
|
|
Hi Forum
I am new in this forum.I have a problem to store String variale in array.
I have two string CString A[100]and CString B.I want to store variable of B in A.Like that A=B.Can any one give some example.
Thxanks in Advance
|
|
|
|
|
LearnVC++MFC wrote: I have two string CString A[100]and CString B
A is not a string, it is an array of 100 CString objects.
LearnVC++MFC wrote: I want to store variable of B in A.Like that A=B.Can any one give some example.
What is the problem ? You need to assign it at a certain position in your array, something like:
A[10] = B;
|
|
|
|
|
Yes If B have some Values like "a","b","c".... then i want to store these values in A[10].I need some line of code..
Plz give me..
Thanks in Advance
|
|
|
|
|
Hi,
You may be mistaken about CString.
You can store a variable in CString object.
CString string = "Test String";
If you want to copy CString A to B;
Do CString A = "Test String";
CString B;
B = A;
Thats it..
The price of anything is the amount of life you exchange for it.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
No I am not misteke about CString.
CString B; variable change at the runtime.Let Us take example.First time CString B="As"; Secon Time It's values changes now it's values is CString B="Cs". So i want to store these variable in Array. Plz help me.
Forum every reply help US .Plz help me
Thx's in Advance
|
|
|
|