Hi at all
It's a crazy thing

"I have a dream" Like someone in the history of the humanity :roll:
A day can code in C++, i have this dream before meet PB
But with PB..i have found the power without the difficulty
So i have never forgotten my dream
Because for me...a programmer is not a real programmer, if he don't know a little bit of ASM or C :roll:
I have buy numerous books on the C/C++, and Visual studio 6 language , and Borland builder language...
But i have not understand is not sufficient to buy...the most important is to learn this books
And you know KCC....he have a bidet a the place of his brain...
KCC his already so happy to can touch with the end of the nail of his foot, the programming, thanks to FRED, PB and all of you when you help me so much
Well all that for say, that this Week end, i have try to begin a new idea.
Create a PB == > C++ converter
The name of my frech thread is : "My dream in C major"
http://www.purebasic.fr/french/viewtopi ... 40#p109540
For help the mule like me to simply convert a simple PB code to VC++
Like PB convert PB code to ASM natively...i'm surprising nobody have this idea...for help to begin to learn the C
So use the facility of PB...for learn difficult API C
A french man ZAPMAN have the idea to create the contrary C ==> PB, and even FRED is interesting
http://www.purebasic.fr/french/viewtopi ... 4547#p4547
But it's a too long project, and he stop his works before the end
The C is the Creator...and SROD say PB compiler is created with him, and FRED say he have right

I love PB and never quit it..all the time i programming

But for me it's a good option for PB...the only C++ language translator ..
Like NETMAESTRO give this splendid code...i see with surprise, it's nearly the same that the C++
Code: Select all
#include <windows.h>
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
HWND hWnd;
const HBRUSH hCouleur_Jaune = CreateSolidBrush(RGB(255,255,0));
HBRUSH hBackground = hCouleur_Jaune;
static char szClassName[ ] = "Fenêtre Windows simple";
int WINAPI WinMain(HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpcmdLine, int nCmdShow){
WNDCLASSEX wincl;
wincl.hInstance = hThisInstance;
wincl.lpfnWndProc = WindowProcedure;
wincl.hbrBackground = hBackground;
wincl.style = CS_HREDRAW | CS_VREDRAW;
wincl.lpszClassName = szClassName;
wincl.cbSize = sizeof (WNDCLASSEX);
wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
wincl.lpszMenuName = NULL;
wincl.cbClsExtra = 0;
wincl.cbWndExtra = 0;
if (RegisterClassEx (&wincl) == false) // On enregistre la classe déclarée avec WNDCLASSEX
return 0 ; // et en cas d'erreur on quitte le programme
hWnd = CreateWindowEx (0, szClassName, "Fenetre simple", WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX, CW_USEDEFAULT, CW_USEDEFAULT, 644, 475, HWND_DESKTOP, NULL, hThisInstance, NULL);
ShowWindow(hWnd, nCmdShow);
MSG messages;
while (GetMessage (&messages, NULL, 0, 0)){
TranslateMessage(&messages);
DispatchMessage(&messages);
}
return messages.wParam;
}
LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam){
switch (message){
case WM_DESTROY:
PostQuitMessage (0); // envoie un message WM_QUIT dans la file d'attente
break;
default:
return DefWindowProc (hwnd, message, wParam, lParam);
}
return 0;
}
So i don't want to talk to you of my project, because he just begin ...and i have not again create the first procedure

And i don't know anything of C....even not one word...so my project is not again finish
My idea is..if each person he know C++ create in the same THREAD one function.
One person create the Window..other a button, other...a textgadget.
After it's easy to use all the procedure and create a parser for the C++
Because this project for only one person, is certainly too long....and this project his certainly died before to born
Perhaps later i have the time to continue my idea...
But it's a real coincidence that NITUVIOUS ask nearly the same question like me....
Apparently..the API is really difficult...FRED is a mother for us to protect of all this CLASSE...CallBack etc ...
Excuse me NITUVIOUS, for disturb your THREAD, but your question have so surprising me
Have all a good day
