|
Thanks. I never realized that existed!
|
|
|
|
|
I started with coding in C# now I want to learn c++.
My Question is: Is there a visual environment for making window applications like in c# with the Visual Studio .NET??
I don't want those MDI window apps!
I know with .NET Studio and visual studio 6 I can make dialog based window apps, but only with MFC.
And in Dev-C++ there's no visual possibility to make windows.
How do all you guys make your window apps? By testing coordinate by coordinate for each control, until they're arranged correctly?
It's so simple in c#...
P.S. I want to be independent from the .NET framework, too. (i.e. no managed c++ in .NET!)
|
|
|
|
|
The equivalent of the C# "forms" in MFC would be the CFormView, you create it, and use a dialog resource to create the form; the same way you create a dialog.
the visual studio comes with a resource editor to create the menus, toolbars, dialogs, ... but it does not really come with a "view" editor.
I don't think there is a 1 to 1 equivalent with MFC ( and the visual studio IDE ) to do Windows Forms.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
I use VC 6.0 and MFC to make windows. You use the resource editor to position your controls in the window. When you create your project you can either use Dialog type application or SDI/MDI application and derrive your CView class from CFormView and you can place controls in it like you would with a dialog box.
|
|
|
|
|
well, so i'll have to get used to the MFC, but how do I check the window message like this:
LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message) /* handle the messages */
{
case WM_DESTROY:
PostQuitMessage (0); /* send a WM_QUIT to the message queue */
break;
case WM_PAINT:
// I can't find that in dialog based window apps in mfc
default: /* for messages that we don't deal with */
return DefWindowProc (hwnd, message, wParam, lParam);
}
return 0;
}
|
|
|
|
|
This is purely win32 programming. That means without the MFC. The MFC are in fact just wrapper classes around the Win32 API. You can still use the resource editor with a win32 project.
For Dev-C++, you can use an external resource editor (there are some free on the web, just google for that) and add the resource in your project.
But Win32 programming is not that easy because you will need to manage everything by yourself (creation of the window, managing the message queue, ...)
|
|
|
|
|
That's what I meant: purely win32 programming without the MFC,
"you will need to manage everything by yourself (creation of the window, managing the message queue, ...) "
that's the interesting part in c++, isn't it?
Then I'm gonna search for resource editors to make windows, thank you very much!
|
|
|
|
|
Opa Knack wrote:
that's the interesting part in c++, isn't it?
Yes this is interesting but it take some time to feel confortable with that . But if this is not a problem for you, then that's great because you will learn a lot about how a windows program work.
|
|
|
|
|
This was the first book I read on Windows development. My first resource editor was...Notepad. Go forth and learn!
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
good ol' petzhold
|
|
|
|
|
Opa Knack wrote:
I know with .NET Studio and visual studio 6 I can make dialog based window apps, but only with MFC.
MFC has no bearing on whether an application is dialog-based or not.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I posted this late last Friday, so over the weekend the answer has gotten lost in the depths of The Code Project. I was looking to make my program not resizable, and one suggestion I got was that I could remove teh WS_THICKFRAME style, but could I please get some advice on how to do this?
|
|
|
|
|
See here.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Something seems to be wrong with the link
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Use CWnd's ModifyStyle[^].
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Hey guys
I.ve been trying to develop a tiff viewer for quite some time now but havent been able to,
can anyone help me out? gauravmalhotra18@gmail.com
Gaurav
|
|
|
|
|
|
I am trying to set up linked list (MC++ Array List) with a loop adding 381 instances of the object. I would like each instance of the object to have a unique object name. I have tried adding the space number (i) onto a string but it will not let me use it as the object name.
Also When i run the below code it will set up 381 object, however the space from set_Space() is all the same at 381 on each instance. I thought that when i put each object into the array list it was unique but somehow they are all linked together. Thanks in advance.
<br />
void Resident::setupMaster()<br />
{<br />
ArrayList *al = new ArrayList();<br />
Resident* resident = new Resident();<br />
<br />
for(int i=0; i<=381; i++)<br />
{<br />
resident->set_Space(i);<br />
al->Add(entry);<br />
}<br />
|
|
|
|
|
Lagwagon56 wrote:
for(int i=0; i<=381; i++)
This will execute 382 times, not 381.
Lagwagon56 wrote:
al->Add(entry);
What is entry ?
Lagwagon56 wrote:
resident->set_Space(i);
I'm not sure what you expect from this statement by having it in the for loop. Only one resident object is created, and set_Space() is called on the same object each time through the loop.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Woops should be al->Add(resident) forgot to cahnge it when posting.
|
|
|
|
|
I need to develop a software using which two hosts in different LANs can translate file.
please provide me a simple way to solve the NAT problems,
or please give me some hints.
please..
|
|
|
|
|
Can anyone tell me how message reflection should be implemented or point me at a reference on the topic. I am NOT using MFC. I am attempting to custom draw a header control and need to know how to get the WM_NOTIFY message from the parent control to my window procedure for the header control. I can subclass the parent of the header control when it is created but what happens when you destroy the header control? The parent window is still sub-classed with no way to work out the address for the parents original window procedure.
Any help would be greatly appreciated.
Steve.
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
Message reflection isn't a built-in feature in Windows, you need to do it manually. Check out CWindowImplRoot<TBase>::ReflectNotifications() and CWindowImplRoot<TBase>::DefaultReflectionHandler() in ATL.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ
Strange things are afoot at the U+004B U+20DD
|
|
|
|
|
Hello Friends,
How can I know whether my application (.exe) consists of MFC classes, so that I can include MFC42.dll file and if requires how can I make it available.
Thanks in Advance
Neelesh K J Jain.
|
|
|
|
|
Instead of trying to know if it uses MFC (and so if you need to supply another dll), you can use the dependency walker tool that is included with Visual Studio. It will give you all the dll that an executable requires to run.
|
|
|
|