|
Could this be related with ASCII value? 26 corresponds to substitute, so as toxcct says you would be having some problem with the way you read from the file.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi , thanks for the answer.
I am reading like
int c;
for(i=0;i<10;i++)
{
c=getc(fp)
char [i]=c;
}
If the charater is 26 then c will contain -1.
Regards,
Sunil Kumar
|
|
|
|
|
sunilkumar.d wrote: int c;
for(i=0;i<10;i++)
{
c=getc(fp)
char [i]=c;
}
Are you sure this is the code? It won't even compile.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Sorry sir,
I just typed in correctly.
Regards,
Sunil Kumar
|
|
|
|
|
Hi,
How is the File Opened? If you are looking for bytes it should be "rb", "r+b" etc, the 'b' must be there. What was ascii 26 again? I think it was 'Substitute' Anyway, fgets and fputs may try to put an interpretation to ascii 26 when encountered in text mode. In binary mode is should pass straight trough.
Hope this is helpfull,
Regards,
Bram van Kampen
|
|
|
|
|
Hai,
In my XML File ,i am having a tag which value is Date & Time.
Like this,
2008/05/19 00:00:00
in my output XML File i want value Like this,
05/19/2008 00:00:00
using XSL transform,
what is the solution for this ...
please reply me..
Born to win...!
|
|
|
|
|
Does anyone know how to get the vendor id, product id and serial number of a USB device from Windows?
I know that you can get the vendor name and product name using IOCTL_STORAGE_QUERY_PROPERY, but this returns a text description of the vendor and product rather than the hex ID codes.
I have also found that the registry enumerates the USB devices in HKLM\CurrentControlSet\services\USBSTOR\enum, but I don't know how to tie this into the device handle I have on an opened device handle.
|
|
|
|
|
See Win32_DiskDrive[^] class. (Look at the DeviceID field).
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
|
Have you tried this?:
http://www.winsim.com/diskid32/diskid32.html
I found it very good for physical drives, and, it's freeware
regards,
Bram van Kampen
|
|
|
|
|
This code that you suggested is very specific to IDE, issuing ATA commands via a custom driver. What I require are the USB identifiers as transmitted over the USB during enumeration of the device. These IDs identify the specific device. They are held as entries in the registry. What I was hoping for was a system call or technique that would associate a handle of an opened device to the registry entry that specified the Vendor, Product and serial numbers.
|
|
|
|
|
Hi,
Sorry for the Delay.
I Understand what you mean. I am not aware of any system calls in that respect. System calls tend to be generic as far as the filing system is concerned. I guess that this sort of communication takes place at device driver level. This suggests that to get this info, you'll need to write a driver, and insert it into the driverchain. All very technical and Error Prone. Seeing that you know that this info is stored in the registry, any chance of using that information.
Hope this is Helpfull, unfortunately, this is where my knowledge stops.
Regards,
Bram van Kampen
|
|
|
|
|
this messege appeared after compilation but programm executed properly, why this linker error appeared?
vf
|
|
|
|
|
Your executable is still running while you are compiling, so the file can't be updated. Close it and build again to fix the problem.
|
|
|
|
|
I think that happens all of us from time to time. Can be strange for a novice though, particularly if through one foulup on another, the running exe is invisible on the task bar or the Task Manager.
regards,
Bram van Kampen
|
|
|
|
|
Maybe its exist on the memory wehn you clsoe it.
|
|
|
|
|
Hi,
IS there any Win32 API avilable to Encryption a string and decrypt the same with KEY.
If not please let me know where I can get c++ source to Encrypt and decrypt a string with KEY
This must have a key for Encryption and decryption.
Thanks,
Nandu
|
|
|
|
|
Have you googled [^] for?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
|
|
|
I am using:
RegisterHotKey(This->hwndOuter, ID_HOTKEY_COPY, MOD_CONTROL, value_of_INSERT); // hotkeys
to registry the CTRL-INSERT hotkey for copy text.
I want to know the value_of_INSERT from the code above.
I also want to use CTRL-PgUp, CTRL-PgDown, CTRL-End, CTRL-Home as hotkeys.
How can I now these values?
danginkgo
|
|
|
|
|
VK_INSERT, VK_PRIOR, VK_NEXT, VK_END, VK_HOME. Defined in Windows.h
Also, look in MSDN.
But why do you want to register system-wide hotkeys?
Cheers
Steen.
"Are you gonna check your makeup when you're done whining?" John Simmons, 05/31/2006
"Of course, the next day it automatically updates, and your quick'n'dirty patches cause the new binaries to segfault all over your linoleum. If only you'd had the source..." Shog, 10/18/2006
"One day I realized that sadness is just another word for not enough coffee" Wally, 10/18/2006
|
|
|
|
|
Thank you. That helped me much
I am working at a IE plug-in and I had to use CTR-R, CTRL-H as hotkeys for the plug-in. These were also hotkeys for the browser.
So I used RegisterHotKey and UnregisterHotKey.
Is there another way that I can override or disable the browser's hotkeys while the plugin is used?
danginkgo
|
|
|
|
|
I have never worked with IE plugins, so I can't help you there.
Cheers
Steen.
"Are you gonna check your makeup when you're done whining?" John Simmons, 05/31/2006
"Of course, the next day it automatically updates, and your quick'n'dirty patches cause the new binaries to segfault all over your linoleum. If only you'd had the source..." Shog, 10/18/2006
"One day I realized that sadness is just another word for not enough coffee" Wally, 10/18/2006
|
|
|
|