|
Well, I've written a small part of what you are talking about here:
http://www.codeproject.com/useritems/includefinder.asp[^]
However, I've undertaken projects to do what you are talking about, and if I were you, I'd start with the source of a proven compiler like g++ to do this. If you are trying to do it from a "this would be cool to write" perspective, then start by getting yourself a good book on compiler architecture, like the Dragon Book (Compiler Principles, Techniques, and Tools[^]), or some such other book (there are probably other good books out there).
Good luck with it anyways
Chris Richardson
|
|
|
|
|
How to do that? I have a directory filled with *.gif images (but if it'd be more useful, I can convert them to *.bmp) and I want to have them displayed in a Picture box. How to do that?
I only have to know how to open an image file (*.gif or *.bmp or whatever) and display it in a picture box. I can manage all the other steps (Well, I guess I can...)
Tnx.
|
|
|
|
|
use the CBitmap class from the MFC to load *.bmp files. but then, you have to draw it with GDI
a Picture Box aequivalent is maybe the CPictureHolder class
scio me nihil scire
My OpenSource(zlib/libpng License) Engine:
http://sourceforge.net/projects/rendertech
Its incurable, its a Pentium division failure.
|
|
|
|
|
"use the CBitmap class from the MFC to load *.bmp files"
But how exactly? I see no functions in that class or any parent classes that could do that...
|
|
|
|
|
Hi, I'm doing a simple packet filtering firewall as my final year project. I'm at the early stages of my project and I've already studied about the types of internet firewall out there and other security overview information.
So, I need detailed information on how to build a firewall. Can you guys point me to good tutorials/information that might help? I'm using Visual C++ to code and MFC to create the GUI. Also, since I'm doing it in a Windows platform, I've heard that I need some sort of a driver, can you help explain this part as well?
Thx,
gildan2020
|
|
|
|
|
For the winsock part of the design, I recommend this book.
Network Programming for Microsoft Windows, Second Edition by Anthony Jones and Jim Ohmund.
Kuphryn
|
|
|
|
|
yup, thx for da tip
i remember that i've to deal with some kernel-level stuffs for my firewall. any ideas on that?
|
|
|
|
|
http://www.amazon.co.uk/exec/obidos/ASIN/020163466X/rpanetwork-21/202-3867982-5617414
then
http://www.rpanetwork.co.uk/wp/fw.rhtm
(this was a one minute search @ google )
another tip:
don't use the MFC Socket Class for Socket Programming, because under the hood, there are Win16 Functions(in version 4.x, i don't know, if this is in version 7 also so)
scio me nihil scire
My OpenSource(zlib/libpng License) Engine:
http://sourceforge.net/projects/rendertech
Its incurable, its a Pentium division failure.
|
|
|
|
|
hmm..bout dat link to "Firewalls and Internet Security: Repelling the Wily Hacker" book.
i think i've read a similar book by Elizabeth D. Zwicky entitled "Building Internet Firewalls". do you think there's any difference between the two?
i've pretty much covered the necessary basics of firewall. so u know wat i should read for really complex stuff bout firewall?
thx,
gildan2020
|
|
|
|
|
sry
i have no experience with this book
scio me nihil scire
My OpenSource(zlib/libpng License) Engine:
http://sourceforge.net/projects/rendertech
Its incurable, its a Pentium division failure.
|
|
|
|
|
Is there any way where one can migrate a process / thread from one computer to another connected computer and have the results returned to the first computer for load balancing?
Take for example I run two extreme memory-intensive program, minesweeper and solitair, and the program will migrate one of the processes to the other computer (which is running nothing) for better performance.
If this is not possible on pre-programmed applications like those stated above, then is there a way where new applications can be written such that this is possible?
thanks in advance
|
|
|
|
|
zichun wrote:
If this is not possible on pre-programmed applications like those stated above
Probably possible but would require alot of work...
zichun wrote:
there a way where new applications can be written such that this is possible?
I believe thats what SETI project does
http://setiathome.ssl.berkeley.edu/[^]
Cheers
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
Therre are some tools that watch files and can get if the file change or not(I know how to do it),I want to know is that possible to get the changes for the file too? For example what is written to the file or the location of it or what is read from it?
I want to write a lock for my software and want to keep some information in a file,and now want to know if it is possible to spy it in this way?
Mazy
No sig. available now.
|
|
|
|
|
I got the "Internet Explorer_TridentCmboBx" element in to the HTML document.
But I can not expand the element from the MFC application.
Please help me to expand the "Internet Explorer_TridentCmboBx" from the MFC application
TAUHID
|
|
|
|
|
hi,
I can't debug apps using VStudio 6.0 under XP. Do i need to install any updates to VC 6 ? If so, please give the url
regards
hari
Hari Krishnan
|
|
|
|
|
|
Many thanks Mike
Hari Krishnan
|
|
|
|
|
Hi,
I made an atl server and added few interfaces, accidently my friend added an interface which is MTA, now i know MTA will fail in this design. Hence i want to convert it to STA. Is there any way to convert the existing interface from MTA to STA with minimum effort?
Thank you very much.
Prakash.
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
I assume you're talking about an implementation here, not interfaces. Interfaces are just a collection of methods.
In the inheritance list of the C++ class implementing the interface, change any occurence of CComMultiThreadModel to CComSingleThreadModel . In the RGS file, change the ThreadingModel value to Apartment .
--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | 1ClickPicGrabber New v2.0! | RightClick-Encrypt
Actual sign at the laundromat I go to: "No tinting or dying."
|
|
|
|
|
Yeah i was talking about the implementation of the interface and not the interface itself...
Thanx.
and wish you a happy new year.
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
can anyone helpme how to pass query values dynamically.
(e.g)
cin>>a;
cin>>b;
char szStr1[100]="Insert into region(regionId,RegionDescription)Values(????,????)"
In what format I should supply the values (i.e) the values of a,b.(plz rewrite the
above statement)
|
|
|
|
|
you can put construct the query this way..
<br />
cin>>a;<br />
cin>>b;<br />
char szStr1[100];<br />
sprintf(szStr1,"Insert into region(regionId,RegionDescription)Values(%d,%d)",a,b);<br />
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
#include <sstream>
int a,b;
std::ostringstream strm;
std::string s;
strm << "Insert into region(regionID, RegionDescription)Values(" << a
<< "," << b << ")" << std::ends;
s = strm.str();
--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | 1ClickPicGrabber New v2.0! | RightClick-Encrypt
"That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."
-- Buffy
|
|
|
|
|
Hi guys,I have a question
I used Access2000 to build a database,there is a Field named “Price”,it's type is money.
In VC++ ,I used ADO to access this database.
I wanna display the value of this field in my listctrl,the code as follow:
_variant_t Holder;<br />
CString str;<br />
<br />
Holder = theApp.m_pADOSet->GetCollect("Price");<br />
<br />
if ( VT_NULL==Holder.vt ) str="N/A";<br />
<br />
else str.Format("%.2f", Holder.dblVal);<br />
<br />
m_ListCtrl.SetItemText(i, 7, str);<br />
listctrl display 0.00 in this field.but in my table,it's value is 3.00,could anyone tell me what I can do? thanks
===============
YES, I am here.
===============
|
|
|
|
|