|
|
JWood wrote:
residual magnetism is destroyed
Ahhh I wondered why they did that...Window washer does it like 30 times....I couldn't figure out why...
Interesting
I'm drinking triples, seeing double and acting single
|
|
|
|
|
Indeed, the default behavior of the shred command on many Unix systems is to overwrite the file 25 times (!!) with random data, with the option of adding a final overwrite with zeros in an attempt to hide the fact that shred was even used.
Note, however, that most programs like shred can only work at the file level -- filesystems which do not guarantee that overwritten bytes are written to the same place on disk will likely leave residual chunks of the data file behind in unallocated space.
Of course, probably the best way to keep that data from being recovered would probably be to overwrite it with random data many time, zero it, delete it, cause a head crash on the occupied sectors, then melt the platters
- Mike
|
|
|
|
|
Michael Imamura wrote:
cause a head crash on the occupied sectors, then melt the platters
I don't think i'll be going that far...
I'm drinking triples, seeing double and acting single
|
|
|
|
|
i wanted to use switch instead of if-else so code:
CString buffer;
m_list.GetText(chosen,buffer); //select from listbox
switch(buffer)
{ case "Wet etch Al H3PO4":
recordset.Find(AFX_DAO_FIRST, "ID = 'AlW1'");
break;
case "Wet etch Al H3PO4/HF":
recordset.Find(AFX_DAO_FIRST, "ID = 'AlW2'");
break;
}
i have error: switch class cstring illegal and case expression not const, how do i correct this?
|
|
|
|
|
You can't use strings in a switch statement.
Rickard Andersson
Here is my card, contact me later!
UIN: 50302279
Sonork: 37318
Interests: C++, ADO, SQL, Winsock, 0s and 1s
|
|
|
|
|
|
hi..
Iam involved in the migration of an application developed on VisualAge C++ for windows to Visual Studio 6.0.
Could any one give some info of how it is to be approached ?
Any tips, tricks and pitfalls in achieving the objective ?
Any help is greatly appreciated.
Thanx
saleem
|
|
|
|
|
I have experience with Visual Age C++ (for OS/2) and with Visual Studio. Given that their approach to user interface code is so different, I would suggest re-engineering the UI code from scratch. I wouldn't try to 'port' the Visual Age stuff; it's just too different. Lower level logic could probably be ported, however.
Good luck.
Software Zen: delete this;
|
|
|
|
|
Hi,
In my MFC app, i create controls dynamically in a View.When i scroll the view there is lot of flickering in the screen.How to avoid this.Pls help
Thnks in advance and for all your HELP..Thnks again
ram
|
|
|
|
|
Try modifying the parent window style to include WS_CLIPCHILDREN. If the parent is a FormView, you can do this in the dialog editor; otherwise, override PreCreateWindow.
|
|
|
|
|
Hi all,
There are fonts that define characters in the C1 region, namely 0x80 thru 0x9F. (Windows CP1252 does have characters defined in C1 as well.) The problem is that these characters show up as empty square boxes when I use TextOut() and DrawText() to draw characters in these fonts. It appears that TextOut and DrawText filter out these characters. But Notepad2000 can display these characters as any other ASCII characters.
My question is: What character drawing function can display characters in the C1 region? Definitely there must be a way to display them. Otherwise, these characters don't show up in Notepad2000 either.
Thank you very much in advance for your help.
Hoc Ngo
hoc_ngo@yahoo.com
|
|
|
|
|
There are no problems displaying any character with TextOut() etc. that I am aware of. If you are seeing square boxes then you aren't using a font that includes the particular characters you want. You can use the Windows Character Map app to see the character sets for all installed fonts.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
Thanks for your respose.
FYI, the font does have these characters. It was designed for Windows 3.1 and all characters show up very well. I tested the same font with Notepad2000 and DrawText() and TextOut() on Win2000. Notepad can't display 4 chars at slots 0x80, 0x8e, 0x9e, and 0xb7. But DrawText(), TextOut(), and Character Map app do not show over 25 characters. So I just wonder what API to use, or what parameters to set, to display them. I am working on an application that needs to display all characters available in a font.
Thanks a lot for any insight.
Hoc
|
|
|
|
|
It sounds very strange that Character Map doesn't display these characters. I would focus on the font itself. Maybe it needs to be updated or recreated to work properly with W2K etc.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
Hi,
In my MFC app,i create controls dynamically in a view.I try to popup a MessageBox when user enters wrong data in any of Edit field.What happens is when i click "OK" button in MessageBox,it doesn't disappear instead it loses focus and again when clicked on "OK" button it disappears very slowly..Why this happens..pls help.Also the messagebox routine is called only once since i had doubt if it called twice..
Pls help..I am struggling.
Thnks in advance
ram
|
|
|
|
|
hi...
can you write your's code here?
|
|
|
|
|
Hello Everybody,
what is the difference between using AfxMessageBox(" ");
and MessageBox(" ");. Both of them are used to display message only then why two versions.
Neelesh Jain
|
|
|
|
|
CWnd::MessageBox will call the MessageBox API using the HWND of the CWnd (the m_hWnd member) as parent window. And can only be used from CWnd derived classes.
AfxMessageBox is an MFC global function and internally call CWinApp::DoMessageBox which calls the MessageBox API and uses the main window of the application as the parent window. AfxMessageBox can be called from anywhere in the MFC program. If you dont have a main window it will use NULL as the parent window
I use CWnd::MessageBox cause it lets you set a title, whereas AfxMessageBox will show the app-name string as the title.
Regards
Nish
Extending MFC Applications with the .NET Framework [NW] (coming soon...)
Summer Love and Some more Cricket [NW] (My first novel)
Shog's review of SLASMC [NW]
Come with me if you want to live
|
|
|
|
|
Hi
I'm in the processof converting a VC.net 2002 project to vc.net 2003 and suddenly got and error with this statement
catch (CException &e)
{
TCHAR szMsg[1000];
e.GetErrorMessage(szMsg, 1000);
ShowErrorMessage(szMsg, "CException", MB_OK, _T(""), GetActiveView());
return FALSE;
}
Can anyone tell me what I should change to get this compile with .net 2003 ? (I'ts probably obvious but I've been awake for 28 hours and am getting a bit tired)
/Thomas
|
|
|
|
|
I want to place a bitmap in the centre of the screen.Now it is in left possition of the screen.
|
|
|
|
|
centerX = (screen_width / 2)-(bitmap_width / 2)
I'm drinking triples, seeing double and acting single
|
|
|
|
|
I'm sure this has been asked before, but I need a no-BS assessment from anyone who has used both the BCG and CodeJock libraries as to their perceptions of both.
It appears that both offer about the same set of features so the remaining question is which one a) is more stable, b) fits more seemlessly into VC++ and VS.NET 2003? Perhaps more importantly, which company is more responsive to customers?
|
|
|
|
|
Here's half an answer.
I use BCG for Awasu since they offered a cheaper version for shareware/freeware/etc. developers. Their sales department seemed reasonably responsive. I emailed CodeJock several times and didn't get any response.
I've found BCG ControlBar to be pretty good. It just works. I had tried some other toolkits whose controls were better (i.e. more features) but I had trouble getting the framework as a whole to work so I ditched them.
BCG works pretty well with VS6. They have a little app that takes care of building the library itself. There is also a project wizard so it's easy to create new BCG-based apps. I believe they work with VS.NET but I haven't tried it.
BCG has a bunch of forums where you can go if you have problems. Their support department is not terribly responsive - I got a cheaper shareware licence which may have something to do with it - but I've never had much need to use them which says a lot in itself. A lot of the time, workarounds and fixes are provided by other users anyway.
All in all, I've been very happy with it.
HTH
"Sucks less" isn't progress - Kent Beck [^]
Awasu 1.1.2 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Sir,
Can anybody send simple UDP Program for sending and receiving messages using Sockets.
Thanks in Advance,
Ilamparithi.
|
|
|
|