Hi there I am in need for the following information. 1. Any specific link where i can find info for writing Device-Drivers on Win NT. 2. Link where PCI bus access on Win NT is explained. thanks in advance... Bhaskar... ___________________________ When a thing is new, people say, "It's not true." Later, when its truth becomes obvious, people say, "It's not important." Finally, when its importance cannot be denied, people say, "Well, it's not new."
BhaskarBora
Posts
-
Windows NT Device Driver and PCI Bus access on Windows NT -
porting embedded linuxCan any one give me technical details on how to port embedded linux to a new board/processor? what are the steps and things to consider? any website is there?? thanks in advance regards, Bhaskar ___________________________ When a thing is new, people say, "It's not true." Later, when its truth becomes obvious, people say, "It's not important." Finally, when its importance cannot be denied, people say, "Well, it's not new."
-
Help Experts...CString to LPCSTR conversioncheck out ur HardDiskLetters.. i sur harddisk letter is "C:" hten u need to add '\\' in ur code EZBuf.Format("%s\\EZBuf",HardDiskLetters[iCounter]); in any case, final string in 'EZBuf' should be "C:\dir_name" try it out.. Bhaskar ___________________________ When a thing is new, people say, "It's not true." Later, when its truth becomes obvious, people say, "It's not important." Finally, when its importance cannot be denied, people say, "Well, it's not new."
-
Help Experts...CString to LPCSTR conversionhere's the solution.. myprogram() { CString str; // //how to convert this str to LPCSTR // myfunc(LPCSTR(str))---??? } myfunc(LPCSTR str) { .... .... ... } ___________________________ When a thing is new, people say, "It's not true." Later, when its truth becomes obvious, people say, "It's not important." Finally, when its importance cannot be denied, people say, "Well, it's not new."
-
Disassembler for IBM PC (SoftIce)i want to debug .COM file also.. can we use OllyDbg for that too? ___________________________ When a thing is new, people say, "It's not true." Later, when its truth becomes obvious, people say, "It's not important." Finally, when its importance cannot be denied, people say, "Well, it's not new."
-
Disassembler for IBM PC (SoftIce)Can anyone tell me where can I find a dis-assembler for pc? I have heard of a popular software called SoftIce. If any one can tell me about SoftIce then it would be great ! thanks in advance ___________________________ When a thing is new, people say, "It's not true." Later, when its truth becomes obvious, people say, "It's not important." Finally, when its importance cannot be denied, people say, "Well, it's not new."
-
How do I handle ...i really could not get the question ! ___________________________ When a thing is new, people say, "It's not true." Later, when its truth becomes obvious, people say, "It's not important." Finally, when its importance cannot be denied, people say, "Well, it's not new."
-
Real data typeThe data types that are supported by the system/language directly are called as real DT. Like in C/C++ 'int' and 'float' etc are real data types (i.e directly supported by compiler/system). on the other hand there are adstract or user defined data types such as structures/classes. I hope this explains ur query... ___________________________ "Think big, think fast, think ahead. Ideas are no one's monopoly"
-
Removing focus from button in dlg-based appi think there wouldnt be any difference whether you use an array or something else. as far as you get the ctrl's address it enough. ___________________________ "Think big, think fast, think ahead. Ideas are no one's monopoly"
-
How to explicitly load a MFC dll ?thanks, I will check the URL you mentioned. ___________________________ "Think big, think fast, think ahead. Ideas are no one's monopoly"
-
How to explicitly load a MFC dll ?guys.. .i need a help. Can anyone tell me how to load a MFC DLL explicitly so that I can load the appropriate version and also unload it? Please note that I am exporting a class from DLL. thanks Bhaskar ___________________________ "Think big, think fast, think ahead. Ideas are no one's monopoly"
-
The oddest question everI think bcos you want to buy the full fledged version ASAP and your 'DAD' will give you money for that only when the eval version expires. hehe :-D ___________________________ "Think big, think fast, think ahead. Ideas are no one's monopoly"
-
Removing focus from button in dlg-based appI dont think what you did will create problem. i simulated the same condition here in one test dialog box and could see things working fine. what i did? On button click i am setting focus on some statis text ctrl. thus, after the button is clicked the button looses the focus. bhaskar ___________________________ "Think big, think fast, think ahead. Ideas are no one's monopoly"
-
Does the static variable modifier make variable access faster?dear friend ! its up to you how you perceive things ! "Think big, think fast, think ahead. Ideas are no one's monopoly"
-
Controlling Access To Temporary File"What rubbish. See the dwShareMode param of CreateFile(). " CreateFile will work till you have opened the file and after u close it any process can open it and read the contents. requirement is that no other process should be able to even open or read the file, which was originally created by some other process. this can be done by encrypting the file whose descryption is known to only the creator of the file. _________________________________________________________________ "Think big, think fast, think ahead. Ideas are no one's monopoly"
-
Different fonts in static controls1. get the ctrl obj address 2. call SetFont function e.g: (if thats a CButton ctrl)
CFont m_TEFont; CButton *ptr = (CButton *)GetDlgItem(IDC_BUTTON1); ptr->CreatePointFont(100,"Courier New"); ptr->SetFont(&m_TEFont,TRUE);
"Think big, think fast, think ahead. Ideas are no one's monopoly" -
Does the static variable modifier make variable access faster?i am sorry my friend... static variables is not only a concept in C but it is extensibly used in C++ too. infact "static var" concept is not confined to any language or OS. its a generic concept, which is used in many languages and operating systems. there are some solutions, which are best implemented with static concept. "Think big, think fast, think ahead. Ideas are no one's monopoly"
-
Does the static variable modifier make variable access faster?hi there .. u r right partly... all static variables (no matter where they are defined) are not created on stack like local vars. and also static vars are created once for a process/program and remain till the end. this is the reason when your function has static var array defined rather than a local var array, the execution is faster. as static var is created during the program startup and in your case not everytime when you invoke the function (recursive or otherwise). if it would have been a local array then execution would have been little slower as compare to the static array version (as OS will allocate the array on stack everytime you call the function and removes it from stack when function returns). static var array is shared in all calls to the function. Also, there is a wastage of memory when you are not using the array. to over come this, you can define a 'int pointer' as static and allocate the memory when you need to use the array. when you no longer want the array, relase the allocated memory. this would be a smart solution ! "Think big, think fast, think ahead. Ideas are no one's monopoly"
-
Pointer to structure problem...yup Plato.. what you said is correct ! there the array is infact a array of pointers to "struct s_Test " rather then a array of "struct s_Test ". "Think big, think fast, think ahead. Ideas are no one's monopoly"
-
Controlling Access To Temporary File1. you can't do it directly in Windows. Windows does not support file locking or access validity of any form. Only access level rights of a file are checked while accessing a file, which comes from the current user's access rights and privileges. Probable solution: You need to put some sort of file encryption algo so that only authorize process/program can open it to read/write data from/into the file. but one draw back there in this. anyone can corrupt the file and data will be lost beyound recovery. 2. A tmp files can be deleted by a countom made software that looks for special file name patters and if found can take appropriate action of deletion.. this SW can be put to start during Windows startup so that by teh time PC is ready to be used all tmp files are deleted. 2. B also tmp file names can be logged in one common file with complete path. this file can be opened by a SW during Windows startup and all entries in that file can be deleted one by one. tmp file paths will be added to this log file by various processes/programs that require peroidic/auto deletion of log files. techi !!