|
Hi,
With all those Visual C++ gurus around here at CodeProject, what about
joining forces to create a set of extensible classes aimed at providing
state-of-the-art UI?
I'm thinking about something like CodeJock that provides Office-like UI, or Outlook-like UI or Visual Studio-like UI for MFC, but for WTL. This will make use of multiple inheritance to allow for the 'don't pay for what you don't use' approach.
I think WTL is the way to go but lacks some nice UI features. I personnaly want to get involved in this but I think this should be a collective effort.
Will such an idea encounter enough enthusiasts? Is is worth setting up something here at CodeProject of SourceForge?
Waiting for your feedback, guys...
Cheers.
--
Maxime Labelle
maxime.labelle@freesurf.fr
|
|
|
|
|
Looking for a good sample on sockets, I know nothing about sockets.
Want to create a Listener.exe (wait for data to be sent to the socket)
When data is received, process the data,,,ie display on screen.
What to create a Sender.exe (send data to the socket)....
Any ideas? Just a simple example to carry out the basics...get me on the road....
Don't want to use wizards...just simple console apps in Visual C++ 5.0
|
|
|
|
|
Hello,
I have a probleme to use Visual C++ ( 6 ): ( with MFC )
_to make a ComboBox for all drives
_to make a ListBox with directories
_to make a ListBox with files
thx for your help
|
|
|
|
|
how can i embed a propertysheet in a CToolBar derived class ?
raphael mor
|
|
|
|
|
I just accomplished this using several classes from the Dundas Ultimate Toolbox. Their docking window classes made it alot easier. But, I still needed to customize some of the code to get it to look right.
Good luck,
Frank
|
|
|
|
|
exactly...
hum...
is it that difficult ?
|
|
|
|
|
Could anybody please give me an example how to use CSocket ?
Well best thing is an example for downloading files via this CSocket class !
Using it like this doesnt work :
CSocket m_Socket;
m_Socket.Create();
m_Socket.Connect("www.codeproject.com",80);
well, and how can i check if its connected, or not ?!?!
help me, im quite new with visual c++
|
|
|
|
|
Could anybody please give me an example how to use CSocket ?
Well best thing is an example for downloading files via this CSocket class !
Using it like this doesnt work :
CSocket m_Socket;
m_Socket.Create();
m_Socket.Connect("www.codeproject.com",80);
well, and how can i check if its connected, or not ?!?!
help me, im quite new with visual c++
|
|
|
|
|
I have to open a sys file from Visual C++ Project.
Well,
it is easy in win95 to open a vxd as a file using CreateFile.
but i am having problem with Window NT sys file.
Does anyone help me loading the driver from there.
Is it must to load the driver or something else to do before opening it.
or is there any naming style that i m not following.
thanx in advance.
sajid
|
|
|
|
|
I have to open a sys file from Visual C++ Project.
Well,
it is easy in win95 to open a vxd as a file using CreateFile.
but i am having problem with Window NT sys file.
Does anyone help me loading the driver from there.
Is it must to load the driver or something else to do before opening it.
or is there any naming style that i m not following.
thanx in advance.
sajid
|
|
|
|
|
I install it on my machine (Win 2000 Pro), after that it got the error say devbied package cannot load because its internal version is mismatch from current version. Then no matter what I try, I cannot run VC++ again, even when I uninstall and install it again.
Anyone got the same problem? Could you tell me what is the best way to install it?
Thank you,
NTD
|
|
|
|
|
I tried to install the Windows CE Tools on my MSVS with SP4, the setup succeeds but my MSVS gets broken. I had to reinstall everything.
Maybe you did something similar?
Regards Armin
|
|
|
|
|
I'm working on a browser, but i've got a problem:
Before, when a user click on a link, my browser open a new IE window!!
I change the method OnNewWindow2() into:
void CWebControlBrowserView::OnNewWindow2(LPDISPATCH* ppDisp, BOOL* Cancel)
{
// Get a pointer to the application object
CWinApp* pApp = AfxGetApp();
CDocTemplate* pDocTemplate;
POSITION pos = pApp->GetFirstDocTemplatePosition();
pDocTemplate = pApp->GetNextDocTemplate(pos);
ASSERT(pDocTemplate);
CFrameWnd* pNewFrame = pDocTemplate->CreateNewFrame(GetDocument(), (CFrameWnd*)AfxGetMainWnd());
ASSERT(pNewFrame);
// Activate the frame and set its active view
pDocTemplate->InitialUpdateFrame(pNewFrame, GetDocument());
(...)
pWebControlBrowserView->SetRegisterAsBrowser(TRUE);
*ppDisp = pWebControlBrowserView->GetApplication();
}
Now my application creates a new instance when a user click on a link, but when the user clicks on a favorite (i create a new control) the page appears in the original window!! And when the user closes the original browser, all the others are closed too!
I don't understand!!
|
|
|
|
|
How to Pass Argument to WinMain Function
Advanced thanks
|
|
|
|
|
Hi all,
how can i resize my CEdit, (with GetRect & MoveWindow) automatically, when the Main CDialog will be resized??????
On the Main CDialog i want to scale the CEdit to 0,0 cause i dont want a thick border =p ___ How can i manage this??
Please help me!!
Thanx and bye b4ckup
|
|
|
|
|
Maybe I could help, but I can't clearly understand your need? Post some code lines here!
"Socrates is a man. All men are mortal.
Therefore Socrates is mortal."
-- Aristotle (syllogism)
Cheers
Masoud SamimiGo!
|
|
|
|
|
aehm
k .. I have a little dialog based prog with an edit control in there. the edit control should turn up on the upper left @ x = 0 and y = 0, without a border =p _____ ok???? and: when i resize the dialog, the edit control should also resize.
here´s what i think (i know that dont works):
BOOL CMp3insDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CRect rect;
CEdit* ce = (CEdit*)GetDlgItem(IDC_EDIT);
ce->GetWindowRect(&rect);
ce->MoveWindow(&rect);
return TRUE;
}
when i throw the code into:
void CMp3insDlg::OnSize(UINT nType, int cx, int cy)
{
CDialog::OnSize(nType, cx, cy);
}
my programm crashes!!
yeah, i know i´m stupid, please help me
(if you wish i can send you an email with a screenshot from an other programm, where you can see what i mean)
thanX
|
|
|
|
|
Hi!
I tried this last night and it worked:
void CSizeEditDlg::OnSize(UINT nType, int cx, int cy)
{
CDialog::OnSize(nType, cx, cy);
CEdit* ce = (CEdit*)GetDlgItem(IDC_EDIT1);
::MoveWindow(ce->GetSafeHwnd(), 50 , 50, 200, 65 ,TRUE);
::SetWindowText(ce->GetSafeHwnd(),"Hi There! I am being resized! :-)");
}
The above works fine, but better yet I suggest you use the CResizableDialog by Paolo Messina here on CP!
Its here: http://www.codeproject.com/dialog/resizabledialog.asp
It is realy Nice!
Good Luck!
"Socrates is a man. All men are mortal.
Therefore Socrates is mortal."
-- Aristotle (syllogism)
Cheers
Masoud Samimi Go!
|
|
|
|
|
hey! Many thanx .. the CResizableDialog works very fine that´s what i want!!
.. and thanx for your fast help!!
-------------------------------------------------------------------------------
ok here´s how i made it:
void CMyDlg::OnSize(UINT nType, int cx, int cy)
{
CResizableDialog::OnSize(nType, cx, cy);
CRect rect;
CEdit* ce = (CEdit*)GetDlgItem(IDC_EDIT);
ce->GetWindowRect(&rect);
::MoveWindow(ce->GetSafeHwnd(), 0, 0, rect.right, rect.bottom, TRUE);
//hehe rect.right and rect.bottom .. that´s all
}
bye b4ckup (:
|
|
|
|
|
Thankx to you as well! My pleasure! ;-D
Programming is fun! Especially when things work!
Enjoy!
"Socrates is a man. All men are mortal.
Therefore Socrates is mortal."
-- Aristotle (syllogism)
Cheers
Masoud Samimi Go!
|
|
|
|
|
I downloaded the demo project from:
http://codeguru.earthweb.com/controls/multi
line_listbox.shtml
The program works great. In the file MultiLineDialogDlg.cpp,
there is alot of code using the command m_ctrList.AddEntry().
If I take out all of these AddEntry commands, compile
the program, and then click on the white space that now
fills that multiline list box, I get a strcore.cpp error.
If there is at least one entry in the list, then everything
works fine, I can click on empty white space all day
and the program never crashes.
The error is in file strcore.cpp, but when I click to
debug, the compiler doesn't point me in any real direction.
I am clueless as to what exactly I am doing wrong and how
to resolve it.
Please, please, any response any one can give me will be
greatly appreciated.
Sincerely,
danYELL (an overworked graduate student)
|
|
|
|
|
.. If I take out all of these AddEntry commands ..
I think those AddEntry-commands are usefull for understanding the working of this example (I'm not sure, I haven't downloaded the project). Why do you comment those lines out? Does the example work fine if you don't comment them out?
.. I get a strcore.cpp error ..
Are you sure the error is caused there? I think the error is 'created' a long way before that. Check the Call-Stack to trace it to the code where you can 'understand' it. Probably the last function called in the project code. Place a breakpoint there, and check every value (variables) you can find. I'm sure you'll see something weird going on.
Looks like you are trying to do something with an invalid value. For example, a call to GetItemData for an entry that doesn't exist (-1) or an entry that doesn't have ItemData.
The project should check for this (if (this->GetCount() > 0) doSomething()). If it doesn't, the project sux..
--
Alex Marbus
|
|
|
|
|
Hi everybody,
when my doc/view app starts, the Framework does a call to OnNewDocument if no document is specified on the commandline. I would like to change this. What I'd like to do is to open a document.
For this purpose I've created a dialog similar to the dialog that pops up if you start Visual Basic (provided you use the default config). The user can choose whether to open a recently used file, browse for a file or create a new file. How do I get started with this one?
Any help is greatly appreceated.
Matthias
|
|
|
|
|
If mean you don't want the default document to load on startup, then this is the code:
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
Add it in the InitInstance() of your apps class, and then make your selection dialog load and prompt user to select whatever they wanted!
"Socrates is a man. All men are mortal.
Therefore Socrates is mortal."
-- Aristotle (syllogism)
Cheers
Masoud Samimi Go!
|
|
|
|
|
I made a dialog, and turned border: None
but i want to move the dialog when holding on the dialog
like RGN generator example and the MP3 decoder: http://www.codeproject.com/dialog/skinsyse.asp
I looked over and over again but i couldt find anywhere how to do this, hope you know what i mean.
Wow i hope this task isnt that hard for a begginer MFC programmer.
Thanks
|
|
|
|