|
Take a look at SmartTrans. It works well for single exe projects. It will take your .EXE and using a glossary you supply (english to other language), will create a new EXE with all the resources translated.
I've written an update to handle multiple dll projects, but not submitted it yet. Basically it will scan all the sub projects and create a single resource DLL with all the translated resources. Then you load this DLL when necessary.
|
|
|
|
|
Does anyone know where I can find an API to create snapshot documents (like Access does), but I want to use MFC/C++.
Cheers
|
|
|
|
|
whats a snapshot document?
like a screen capture?
|
|
|
|
|
A snapshot document is sort of like a PDF.
It's a self contained report document that includes text, formatting, pictures etc, and can be viewed on any Windows PC via the SnapShot Viewer (free download).
It's normally created from a report by Microsoft Access, but I thought there may be another way.
I could write a PDF file, but I don't really want to pay for a library to do it, and the free examples I've seen don't really cover everthing I need to do.
|
|
|
|
|
Hi,
We had the shortcuts in our program. However, after implementing the keypressed handler, we cannot use the shortcuts. We will be very glad if anyone proposes a solution.
Thanx in advance,
|
|
|
|
|
A solution might be proposed if the amount of information was a little less scant What kind of "keypress handler"? Defined where? What does it contain?
|
|
|
|
|
I'm working on an application (Visual C++, MFC, Windows NT/2000/XP) which can be run on a pen tablet computer or a desktop computer. I'd like to detect whether a keyboard is connected or not.
How can I detect the physical presence of a keyboard ? Since the BIOS can tell us if there is no keyboard, this should be possible. The associated information available on the WMI (Windows Management Instrumentation) layer of Windows don't seem reliable...
Tarzan.
|
|
|
|
|
|
Hi!
Is there anyway to access the harddisk in byte mode? I mean I want to
get the bytes and modify them or delete them for real... I found some
examples for the assembly language... well is it possible
with c++ without mfc?
Thank you very much for your answers in advance!
Well... I am a beginner ...
|
|
|
|
|
You can mix your assembly codes into your C++ codes
like
ULONG ulReturn = 0x00000000;
__asm
{
mov eax, ulReturn
................
mov ulReturn, eax
}
Don't you like C++ for this.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Wow... I didn't know that! Thanks a lot!
Well... I am a beginner ...
|
|
|
|
|
Accessing the disk directly is not possible on NT-based machines. Goggle for HAL to see why/how it keeps non ring-0 applications from accessing the hardware. You can create a driver to do this, however, but that is not a trivial task.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
"directly" is ambigious, i think.
Under NT, it is much easier to access a hard disk than it is in Win 9x.
All you need to do is call the CreateFile() function with a "filename" of \\.\PHYSICALDRIVE0 for the first physical hdd and so on, or for logical drives: \\.\C:
You can read (not write), data using the ReadFile() function.
Writing would need a device driver.
Under 9x, you cannot use this method. You have to revrt to using the INT13 or INT13 Extended functions for the purpose. And that means writing a 16-bit VxD in VC++ 2.x or Borland C++.
Bikram Singh
|
|
|
|
|
hDriver = CreateFile("\\\\.\\physicaldrive0", ...) uses a generic symbolic link to get access to the driver that represents the first physical drive.
bikram singh wrote:
You can read ... data using the ReadFile() function.
Certainly you can. ReadFile(hDriver, &data, 512, &dwRead, NULL) will work just fine for reading the MBR of the first physical drive.
Access to PhysicalDrivexx devices is restricted to administrator-level accounts. To bypass HAL (e.g., virus scanner) would require a device driver.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
DavidCrow wrote:
Certainly you can. ReadFile(hDriver, &data, 512, &dwRead, NULL) will work just fine for reading the MBR of the first physical drive.
It works for for any sector on the hard disk. Except the ones the hdd controller has marked as "bad" in it's cmos memory.
DavidCrow wrote:
Access to PhysicalDrivexx devices is restricted to administrator-level accounts. To bypass HAL (e.g., virus scanner) would require a device driver.
Thats true. Win some, lose some!
ps. have you worked on a FSFD? When I made mine, I was just so totally confused! The IFS DDK I dont have access to, so it was a really jittery experience!
Bikram Singh
|
|
|
|
|
bikram singh wrote:
It works for for any sector on the hard disk. Except the ones the hdd controller has marked as "bad" in it's cmos memory.
My bad. I read your earlier post as "You can not read..." which is why I was providing an example that showed otherwise. I'll need to not be so quick with my trigger finger!
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
hello,
anyone knows if any libraries for creating a wav file (RIFF complaint) exists starting from an mp3 ( or even only creating it with audio-bytes in memory..
thanks
|
|
|
|
|
Hi,
MCI (Media Control Interface) is part of Windows SDK. You may
need to work with low-level MCI if you have to directly manipulate
raw audio-data. I am not sure if MCI supports MP3 files directly,
though.
Due Regards
Mahnedra
|
|
|
|
|
I need to check the IP address of all clients connecting to my server application.
Ive used the following code to accept client connection and to obtain its IP Address:
SOCKADDR l_ClientAddress;
m_pListeningSocket->Accept(l_TempSocket, &l_ClientAddress, &l_iClientAddressSize)
When I execute this code, I've problems to check to l_ClientAddress variable content: the sa_family field contains the number 2, but the sa_data field contains stange charactes....
How can I manage this variable ? I need to compare the client address with a string in the form xxx.xxx.xxx.xxx.....
Thank u very much !!!
|
|
|
|
|
Do the following:
<br />
SOCKADDR_IN addr_in = *(SOCKADDR_IN*)&l_ClientAddress;<br />
char *pIPAddress = inet_ntoa(addr_in.sin_addr);<br />
|
|
|
|
|
|
mancuso69 wrote:
...but the sa_data field contains stange charactes
And what do you think it should contain? As I understand it, that is an "input" member rather than an "output" member.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Dear All,
I am developing a dialog based application using MFC VC++ Version 6.0 for Windows 2000. The application consists of a TabControl derived from CTabCtrl Class having three tab pages in it. Also, the tabControl has Apply, Cancel , Ok button.
My query is how to disable "Apply" button on the click of an event on tab pages, i.e if on changing a selection of a given radio button in a tab page, the Apply button should become disabled.
Similiar case, like "Display properties" dialog box which appears upon right clicking on the desktop. When we select a background and click on apply or ok button to make the changes, the background color gets changed.
Please feel free to ask further clarifications in this regards,
Regards,
rajesh
|
|
|
|
|
You may call SetModified(FALSE);
Hope this helps,
D.
|
|
|
|
|
Hi all,
I made three buttons OK,Cancel and Apply.
I want to add code on apply button so that the basic functionalities works.
Codes have written below. Plz provide me some idea.
void CPreference::OnApply()
{
// TODO: Add your control notification handler code here
((CGeneralSettings*)m_tabMyTabCtrl.m_tabPages[0])->getSettings();
}
void CPreference::OnOk()
{
// TODO: Add your control notification handler code here
extern int tmpchkflag;
((CGeneralSettings*)m_tabMyTabCtrl.m_tabPages[0])->getSettings();
if(tmpchkflag) {
int iReturn = MessageBox("You must restart your computer before new settings will take effect.\nClose all applications and click OK to restart your computer.","EZ HDD Standard: Settings Change",MB_OK|MB_ICONQUESTION);
if (iReturn == IDOK) {
GivePrivilege();
if(!ExitWindowsEx(EWX_REBOOT| EWX_FORCE ,0)) {
MessageBox("Couldn't reboot! Please do it manually.", "EZ-Security Changed Settings", MB_OK);
}
}
CDialog::OnOK();
}
}
void CPreference::OnCancel()
{
// TODO: Add your control notification handler code here
CDisCardChanges dlg;
if(dlg.DoModal() == IDCANCEL)
CDialog::OnCancel();
}
rajesh
|
|
|
|