|
was it a managed C++ project (which needs .NET framework - v2.0 on VS2005) or an MFC/Win32 project ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
uhh, im a noob.
i went to file > new > project
and selected visual C++ > win32 > win32 console application
and i also tried visual c++ > clr > clr console application
so then: if i learn and use this mfc sh*t, the client computer wont need the framework?
thanks!
|
|
|
|
|
oo here i see that windows forms and mfc seems completely different. http://www.windowsforms.net/articles/georgesheperd1.aspx
can i still use the designer part of visual c++ express eedition 2005 beta 2 with mfc? how?
i toldya, im a noob
|
|
|
|
|
Sam Kline wrote:
so then: if i learn and use this mfc sh*t, the client computer wont need the framework?
mfc sh*t ? hey, if you don't like it, don't use it !
but yes, mfc don't need .NET framework. your program will just need some mfcxx.dll depending on what mfc version you coded with (mfc42.dll under VS6, mfc70.dll under VS7...)
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
ok. thanks for the help. i still have a few more questions tho .
1- where do i get the mfc DLL and do i include it in the same directory as my app (if not, where?)
2- can i code the mfc stuff in the designer window
3- is there a way to convert my code to mfc, or will i need to start my project over
4- how do i start coding w/ mfc? i have vc++ e.e. 2005
5- is mfc a language by itself
6- does the above question make me an idiot lol
|
|
|
|
|
Sam Kline wrote:
1- do i include the mfc DLL in the same directory as my app (if not, where?)
use MFC as a linked library ; this way, you'll have to provide the needed dll with you exe if you want to be sure you program will work on machines which don't have the dll yet.
Sam Kline wrote:
2- can i code the mfc stuff in the designer window
3- is there a way to convert my code to mfc, or will i need to start my project over
4- how do i start coding w/ mfc? i have vc++ e.e. 2005
create a new solution/project in C++ with MFC (exe, not dll project). which code do you want to convert ? i believe you'll have some reflexion to re-adapt you code to MFC.
Sam Kline wrote:
5- is mfc a language by itself
no, the language is C++. MFC is only a framework (a set of functions that you program will work upon).
Sam Kline wrote:
6- does the above question make me an idiot lol
there are no idiot question if there is a reason why it's been asked. i am here to help people like you who need some answers, and i do my best to provide helpful & useful solutions...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Answers in reverse order:
6- Yes
5- No
4- Use the keyboard (that thing with lots of buttons with different symbols)
3- No, yes
2- No
1- If you don't want to bother with the MFC dll you can link statically. Otherwise you can put the appropriate dll (release version only) in the app directory. If you can develop in MFC your computer will have all the dll's.
The opinions expressed in this communication do not necessarily represent those of the author (especially if you find them impolite, discourteous or inflammatory).
|
|
|
|
|
thanks, all ur answers are really helpful!
|
|
|
|
|
I was reading about VC++ Express Edition on MS site earlier this week - as far as I remember, it DOES NOT support MFC, only SDK-level programming and Managed C++.
I could be wrong of course, since everyone else is telling you about doing MFC in VC++ EE 2005.
|
|
|
|
|
|
Hi all,
I have an application with several tabs, selection made in one tab is suppose to update the values on a few other tabs (from database). I tried creating a function and call it when the selection is change. This function activates the refresh buttons on the various tabs. But this method is unable to work.
XXXOnDbClick()
{
// processing done here
.............
// processing end
Ctab1 *tab1;
Ctab2 *tab2;
tab1->Refresh();
tab2->Refresh();
}
void XXX:Refresh();
{ // as the button is private, this is the only way I can activate it
OnButtonRefresh();
}
I want to be able to view the updated values when selecting the tab instead of having to press the refresh button everytime.
Thanks in advance.
|
|
|
|
|
Handle TCN_SELCHANGE instead of WM_LBUTTONDBLCLK
|
|
|
|
|
salam guys
is there any significant difference between vc and vc.net, i dont find any big differenc in programing enviroment perhaps it might b different in build!!
thax in advance,may god help u solve ur problem as well!!
|
|
|
|
|
well, in vc it is possible to use managed code (code managed by the .net framework). There are a lot of useful features in the .net framework. However, if you use the .net framework, it has to be installed on the pc where you run it.
Geert
Want to spread the newest version of your software automatically for free? Use Updater!
Visit my website: www.gvhsoftware.org
|
|
|
|
|
well i want 2 learn any of the .net languages so do u think its sufficient 2 use vc.net n i shud not go 2 c#?
hop u'l respond again
|
|
|
|
|
well, that depends. If you are a windows only developer, I would definitely go for C#. Microsoft is pushing everyone from C++ to C#, and why don't learn the new language?
I am still stuck on C++. The reasons for this are:
1) If you use .net, you HAVE to use the .net framework. This is only supported by newer window versions.
2) C++ rocks, but if you have to learn a new language, C# is almost the same as C++ (almost same syntax).
Geert
Want to spread the newest version of your software automatically for free? Use Updater!
Visit my website: www.gvhsoftware.org
|
|
|
|
|
I creat a file DLL by MFC use VisualBasic. But Input and Ouput
don't compatible:
// C++
extern "C" void PASCAL EXPORT CCreatFile(char lptFileName[20],char lptPath[200])
{
FILE *ptrFile;
char lptstr[250];
strcpy(lptstr,lptPath);
strcat(lptstr,lptFileName);
strcat(lptstr,".ads");
if(lptstr ==NULL)
{
MessageBox(NULL," File NULL!!!","Adsoft !",MB_ICONWARNING|MB_OK);
return;
}
ptrFile=fopen(lptstr,"wb");
if(ptrFile ==NULL)
{
MessageBox(NULL,"Can't creat File !","Adsoft warning !",MB_ICONWARNING|MB_OK);
return;
}
fclose(ptrFile);
}
// VB
Private Declare Sub CCreatFile Lib "AdsoftDLL.dll" (TenB1 As String, Tenb2 As String)
Private Sub Form_Load()
Dim fileName As String
Dim PathName As String
fileName = "KimDo"
PathName = "C:\\"
Call CCreatFile(fileName, PathName)
End Sub
result erroneous
|
|
|
|
|
If I remember correctly, the parameters of the VB function (so the prototype) must use strings by val:
Private Declare Sub CCreatFile Lib "AdsoftDLL.dll" (ByVal TenB1 As String, ByVal Tenb2 As String)<br />
Also, I'm not sure if that will work:
Thangnc wrote:
extern "C" void PASCAL EXPORT CCreatFile(char lptFileName[20],char lptPath[200])
I think you will need to change it to that:
extern "C" void PASCAL EXPORT CCreatFile(char* lptFileName,char* lptPath)
But for that point, I'm not sure at all.
Hope this helps. If not, try to give more details about the errors (crash, error messages, ...)
|
|
|
|
|
Hi, can anyone plz help me ...
im creating an application with easy PNG skinny feature, im using CxImage lib. to load and draw Transparent Images , but i have a big problem , now i want to tell u step by step im creatin my apllication and problem.
1. I am creating a Dialog based Application . and then add this code in
OnInitDialog func, :
{
/* This will Load PNG Image into the CxImage Lib Object */
image.Load( "C:\xxx.png",CXIMAGE_FORMAT_PNG);
}
2. Then i remove all code from WM_PAINT func. and add my code in there
like this :
CSkinDlg::OnPaint()
{
CPaintDC dc(this);
CRect rc;
GetClientRect(&rc);
image.Draw(&dc, rc, 0 , true); /* image is the Object of CxImage Lib.
and draw will draw the PNG image on the Application. */
CDialog::OnPaint()
}
3. and then i use WM_ERASEBKGND func. to Draw the Backgound
Transparent like:
CSkinDlg::OnEraseBkgnd(CDC *pDC)
{
return TRUE;
}
4. with this all things every thing is workin fine , but the problem is when
i move the dialog , it draws Trails of the Drawed Image, or if i want to
draw an another image on the current image then it also draws the Trails
the main background image.
I also used the way of TRANSPARENT dialog. by using the
ModifyStyleEx( 0 , WS_EX_TRANSPARENT); , But the problem is that
when i Refresh my desktop , the dialogs goes invisible, and then an i
have to click on the dialog again to show.
Please tell me how to redraw intire dialog with an timer based func. and
how to draw an another image on bkground image without leaving trails.
i also used RedrawWindow() and Invalidate() to redraw but its not workin.
NOTE: please dont use any of floags like WS_EX_TRANSPARENT or
WS_EX_LAYERRED. this is not workin fine.
Now itz up to my friends .
Plz help me my friends its my dream project .
thnx.
|
|
|
|
|
How would one go about enumerating the string table resources?
I would like to copy the string resources into a table...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
Peter Weyzen wrote:
How would one go about enumerating the string table resources?
these three api will help:-
EnumResourceLanguages Searches for resources of a specified type and name and passes the language to a callback function.
EnumResourceNames Searches for resources of a specified type and passes the name or the ID to a callback function
EnumResourceTypes Searches for resources and passes each type to a callback function.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Can i use this control?
How?
Thanks!
|
|
|
|
|
What autocomplete control ? In the common file open dialog ? You'd have to subclass the behaviour of the textbox that exists there.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Take a look at the SHAutocomplete function.[^]
Be aware of the minimum OS requirements, though. For example, it won't work in Windows 95 or Windows 98, unless you have Internet Explorer 5 or later. You'd better check for the correct version of shlwapi.dll (5.0 or later) before using this function.
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
followait wrote:
Can i use this control?
First You have to Subclass the CFileDialog as Mentioned By Mr Graus and then use SHAutoComplete and related api as mentioned by Mr. Jose!.
Now if you want to know what is Subclassing FileDialog, then here are some link that might help you!
SubClassing[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|