|
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.
===============
|
|
|
|
|
|
sometime soon look for an antialiasing article... as i've just played around with it and gotten it to work pretty well for straight lines and the concept should work for any shapes
r -€
|
|
|
|
|
Does anyone know if there is a way to reset the colour of a menu bar to the same as the background of a dialog? To set dialog background colour, one uses SetDialogBkColor(). With a menu in the dialog, one gets an ugly grey stripe across the top. OK! I know I'm sick and demented and should be using CFrameWnd, but I LIKE dialogs!! And, for a newcomer, they're a damn sight easier to use!! You would be making 2004 start pleasantly for me!!!
Happy New Year
The fool who knows that he is a fool is truly wise.
The fool who thinks that he is wise is truly a fool.
Dhamapadda - Sayings of the Buddha (slightly modified!)
Brian
|
|
|
|
|
Hello all.
I am trying to change the text/style of my button(s). Instead of the default, I want to make them Tahoma, 14pt. The code that I am using to do this is listed below. What is happening is this: If I put this code in the OnInitDialog() or OnPaint(), it somewhat works. The button will look different than the other ones, but now how I am specifying it to look. No matter what nHeight size that I use, it initializes to this same size every time, and bold. But, the funny thing is that the same exact code when used inside an OnBnClickedButton1() changes the font for that button text to exactly what I want. I am wondering why this same code is not working properly in the OnInitDialog() / OnPaint() ??
Also: I am wondering if there is a way to set the default font for the dialog buttons or set the font / size for the button text with the resource editor (instead of having to have code to "change" the font of the button) ?
Thanks
CFont ListBoxFont;
ListBoxFont.CreateFont(
14, // nHeight
0, // nWidth
0, // nEscapement
0, // nOrientation
FW_NORMAL, // nWeight
FALSE, // bItalic
FALSE, // bUnderline
0, // cStrikeOut
ANSI_CHARSET, // nCharSet
OUT_DEFAULT_PRECIS, // nOutPrecision
CLIP_DEFAULT_PRECIS, // nClipPrecision
DEFAULT_QUALITY, // nQuality
DEFAULT_PITCH | FF_SWISS, // nPitchAndFamily
"Tahoma"); // lpszFacename
m_button1.SetFont(&ListBoxFont,TRUE);
|
|
|
|
|
try making new CFont object using CFont* ListBoxFont = new CFont;
that might work... just an idea
r -€
|
|
|
|
|
Your CFont object needs to be moved to the header file of your dialog class.
What's happening is that the CFont object is being created on the stack within your function and when the function exits the CFont object goes out of scope and it's destructor is being called.
shultas wrote:
Also: I am wondering if there is a way to set the default font for the dialog buttons or set the font / size for the button text with the resource editor (instead of having to have code to "change" the font of the button) ?
This would be a nice feature. Microsoft, are you listening?
Kelly Herald
Software Developer
MPC
|
|
|
|