|
Thank you for your reply.
No, it's not ClassWizard I'm talking about, and it's not AppWizard in the sense that I'm creating a new application using that tool. It's AppWizard in the sense that it was that tool I used when I first created the application, which now that I'm trying to do the file substitution thing, I realized at the time it was created, AppWizard must have done something peculiar to it that causes the Workspace to reject the switching of files that I'm trying to acomplish.
I know when you use AppWizard to create an application, it does quite a bit of secret things behind the scene to the application you're creating, in effort to maintain the framework. It is one of those secret things I believe I might be running up against.
I am not looking to violate any of AppWizard's rules. I am trying to understand them so as to comply with them even as I am trying to benefit from the switching of files with the same names. AFAIC, this shouldn't be thought of as a change in the environment. The content of the files are only what is different, which shouldn't matter to the IDE.
William
Fortes in fide et opere!
|
|
|
|
|
I think I may have found a way. I am not too sure, but if after using the technique for a while and it holds up every time, then I'll know I will have truly found a way.
Thanks for your thoughts and other efforts. I appreciate it.
William
Fortes in fide et opere!
|
|
|
|
|
Is there any controls like already availble?
I've hacked togather a control which uses about 3-4 different articles(and their code) to create a list control much like the one found in windows explorer. I always find a need for a listview with all the functionality found in explorer (drag n' drop, sort, image lists) does anything like this already exist?
Thanks
I'm drinking triples, seeing double and acting single
|
|
|
|
|
Hi,
I am using VC++ to connect/transfer files from my Web page, sometimes even I connect then disconnect the Web connection in every 3 seconds ... I still have this error message The connection with the server was reset
1) Before I transfer files, I do verify to see the connection is successful
2) After transfer files, I close the connection with the Web
3) Then wait 3 seconds to do over the same task
I would like to know why I have that error message & what can I do to avoid this problem
I appreciate any help here
Thanks
|
|
|
|
|
is this really a visual c++ coding question?
Don't try it, just do it!
|
|
|
|
|
If he is making his program using C(++), then Yes!
- Anders
Money talks, but all mine ever says is "Goodbye!"
http://SourceLocker.net[^] SourceControl and DefectTracker Project.
nsms@spyf.dk <- Spam Collecting
|
|
|
|
|
Hi,
Yes it is! And it is working fine if the Web-Site is not very busy!
Regards
|
|
|
|
|
Hi all,
I've simple file manager, in which I display icons for EXE files using ExtractIconEx() this way:
ExtractIconEx (pathToEXEFile, 0, &bigIcon, &smallIcon, 1);
It works fine. But I also found EXE files, for which this function takes much more time than normally.
One example of such file is RLUninstall.exe, located in WINNT directory.
Doesn't some know how is this possible or how to bypass it?
Thank you for any suggestion.
|
|
|
|
|
|
I could have sworn that in VC++, when implmenting an interface, IntelliSense is supposed to prompt you "Press TAB to implement <interface>" and it'll give you the method/property signatures with empty bodies, but mine doesn't seem to want to do this. This helps a lot with large interfaces.
There are no errors from syntax checking displayed, it's just a #using and a class header so far - what are my options for filling out the interface?
|
|
|
|
|
Chris Cornell wrote:
I could have sworn that in VC++, when implmenting an interface, IntelliSense is supposed to prompt you "Press TAB to implement " and it'll give you the method/property signatures with empty bodies
I have never seen this In VC++, in C# yes, but not VC++.
Which version do you use?
- Anders
Money talks, but all mine ever says is "Goodbye!"
http://SourceLocker.net[^] SourceControl and DefectTracker Project.
nsms@spyf.dk <- Spam Collecting
|
|
|
|
|
2k3.
I don't know, I could be wrong. I just thought it did... I know for sure it does it in C#, because I ended up just using the intellisense from C# and porting to C++... shame on me for not going with a template for a type-safe collection, I guess.
|
|
|
|
|
Try Visual Assist.Nifty tool but.. not free.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Here is another easy question for you guru's who responded to my last question within minutes
why the heck is the program I made (set up as a dialog box) ALWAYS on top... it's always the up most window and is never toppled by a newly focused window.
Is there a simple switch I'm missing that allows it to behave like every other window in the world?
lead2gold
|
|
|
|
|
read about the SetWindowPos api, especially the second parameter!
Don't try it, just do it!
|
|
|
|
|
A few questions regarding SHGetFileInfo() :
1) Is it possible to use this function to determine whether filename
is a file or a folder? When filename is a directory CFile causes an error messages to be displayed and I want directory to be shown too.
2) Is using CFile the best way to get the file info i'm looking for?
(Size, Type, Path, Accessed Date, etc...) When CFile is first instantiated it opens the file, so wouldn't this change the last accessed date to the moment of creation, thus skewing accessed date each?
SHGetFileInfo(filename, 0, &shInfo, sizeof(SHFILEINFO), SHGFI_SYSICONINDEX|SHGFI_DISPLAYNAME|SHGFI_ICON|SHGFI_SMALLICON|SHGFI_TYPENAME);
CFile myFile(filename, CFile::modeRead);
CString fSize, fTitle(myFile.GetFileTitle());
fSize.Format("%d", myFile.GetLength());
LVITEM lvi;
lvi.mask = LVIF_IMAGE|LVIF_TEXT;
lvi.iItem = GetItemCount();
lvi.iSubItem = 0;
lvi.iImage = shInfo.iIcon;
lvi.pszText = shInfo.szDisplayName;
InsertItem(&lvi);
I'm drinking triples, seeing double and acting single
|
|
|
|
|
How about CFile::IsDirectory() function?
|
|
|
|
|
Hi all,
I have created a MFC dialog based application. Now, I am creating an installer with WISE installer 4.0. This installer works on my machine where Visual C++ 6.0 and many other softwares are installed but gives the error message on client machine where only Windows 2000 Server is installed without any other software installtion. Client machine only contains Windows 2000 Server.
It gives the error that mfco42d.dll is not found in System Path.
What to do? Is there any merge module for this file so that I can include it Wise installer??
Urgent help is needed.
thanks
|
|
|
|
|
|
thanks, this will help a lot.
I am now trying to deploy the release exe of my application and test it on the client machine.
If it also fails, then i ll try to link the application statically wih MFC Dlls.
Hope this works !!!
|
|
|
|
|
I have now build a release version of my app and it is working. Can you tell me why it was not working with debug version, while i was including the proper merge modules?? Why it was not working in the presense of the required dlls??
Note: I included the merge module for mfc42d.dll in Wise installer but when I execute this installer on the client machine (having only Windows 2000 Professional) installer does not installs these debug dlls. What is the reason behind this?????????
Thanks
|
|
|
|
|
the windows operating system does not include debug versions of dll software, because they are not needed for non-developer windows users.
|
|
|
|
|
I'm not sure if I summarized what I want to do properly.
Visualize a small dialog box infront of you with 2 buttons (Button1, Button2).
I want to be able to have them both call the same function but within the function distinguish which one was pressed.
example:
OnButtonPressed()
{
if (button1) -blah;
if (button2) -blah;
return
}
I have one more tiny quick question... whats the SDK function that opens the "Browse for Folder" dialog box. i made a quick image of it, it can be seen here http://www.lead2gold.org/BrowseFFolder.jpg
lead2gold
|
|
|
|
|
1- I don't think you can distinguish the 2 buttons since the callback is anonymous, can't you have 2 callbacks that simply call a third function ?
You might do something with some other messages than ON_BN_CLICKED, but I don't know how to do it without looking into it right now.
2- the function is ShBrowseForFolder
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
Thank you! I'll try this... thanks for everyone who replied, the other answers were great too, until one said it might be a maintnance nightmare.
p.s. i didn't expect to get the answer so fast!
lead2gold
|
|
|
|