|
Halloko wrote: So either a critical section of some sort or two open handles.
Lets discuss the pros and cons of each method :-
#1: Using Syncronization Object to control reading and writing :-
Very Native Solution.. almost every big project use same.. but let consider the example.. when you am reading the particular file and request for the writing
come then writing operation have to wait till the reading operation complete and viceversa.
#2 Using Two Handle.... you have to open file in sharedenynone mode.. this will increase memory overhead.. each handle is to maintian it postion in the file.. also you have to do espeacial handlling of the updation of file..
so i believe Critical section Method is more suitable for you!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Yeah, but I believe it will be faster to use two handles in my case as I am communicating with my own driver which can process both a read and write operation at the same time.
|
|
|
|
|
I would like to know, how to do the data string parsing
hh
|
|
|
|
|
this doesn't mean much things...
to parse a string, you have to know its content, how it may be formatted, etc... if you want to have a look at VisualCalc source, i hope you could find some interrests there...
please tell us more infos about what you have to parse...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.24][3.0 soon...]
|
|
|
|
|
Hello,
Actually, am getting data from the machine as 0x03 0x10 0x82 0x10..... nad length of the buffer is varying, as Length:108 or 256 or....so how to proceed further. do we have any Active X control for parsing the data?
|
|
|
|
|
srija wrote: how to do the data string parsing
try Class COleDateTime!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
We are in the process of developing what we hope will be a commercial product using you grid control in a part of the porduct. We like what it is doing for use.
We would like to place a slider into a cell. We did not see this in the current version. Does there this capability exists?
If so can we get a copy of it.
Joel Thornton
Teir5 Inc.
|
|
|
|
|
what are you talking about ?
which grid are you talking about ? Chris Maunder's ?
why don't you ask this on the message board at the bottom of the article where you saw the grid ?
TOXCCT >>> GEII power [toxcct][VisualCalc 2.24][3.0 soon...]
|
|
|
|
|
Yes I am talking about Chris Maunder's Grid control.
why don't you ask this on the message board at the bottom of the article where you saw the grid ?
I do not know I asked it here and will as you suggested.
|
|
|
|
|
how i can make dynamic file library under linux (.so) which i can call them with java programme
am
|
|
|
|
|
|
i have somme DLL 's file compiled by visual c++ and called by java of windows
i want to know if i can call them with java of linux
if yes how ?
if not what is the solutions
am
|
|
|
|
|
Sorry, Software for Linux and Windows is NOT interchangeable.
Solutions:
1) Host the site on a windows PC and connect via the Internet from your Linux PC.
2) Recompile with a Linux C++ version. This means changing the code if you have used Microsoft or Windows specific stuff.
|
|
|
|
|
ss2006 wrote: want to know if i can call them with java of linux
try to compile same dll in MiniGw paltform.. that can give you Linux equivalent code of same
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
more ExeFile load A.DLL(win32 DLL)
now i want key down a hotkey ,each A.dll can process this message( all exe's A.DLL can know you key down hotkey and in the DLL do something).
how to do?
and how let win32 dll can process windows message(WM_???)
Thanks.
|
|
|
|
|
I'm frequently asked to reinstall Windows for people who made a mess of their OS. I'm planning to write a program that makes a backup of the drivers, so I don't have to spend a lot of time searching for the drivers.
My first question is: Is this possible? Does all the necessary information get copied when the drivers are installed?
The second question is: Does anyone have any tips or methods how to go about this task? (I have seen the system info project that lists device drivers)
I'm now testing with the overkill method: find all the dll,exe,sys,inf,vxd files (<2MB) on the Windows drive and the files in the 'drivers' folder and make a copy to a CD-Rom. If Windows needs a driver I give the location of the CD ROM. This has limited success.
|
|
|
|
|
if you have to do regular restores, just invest in a mirroring software solution.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
I agree making a mirror of a clean install (when the PC is new) is a good option. But:
1) Mirroring is not an option ones the OS is a mess.
2) In most cases I don't have the option to make a mirror before the problem(s) occured.
3) I want to make this program as a hobby-project.
|
|
|
|
|
Hello gurus,
Can someone remind me how to allocate a dynamic 2D array of int in standard C with malloc and free???
Thanks in advance.
Best regards.
Fred.
There is no spoon.
|
|
|
|
|
You could do it like this:
int* pInts = (int*)malloc(width*height*sizof(int));
int MyInt = *(pInts+x+y*width);
Steve
|
|
|
|
|
Hi steve,
Thanks for your reply.
Actually I am targetting the algorithm with the loops and use it as a normal array.
<br />
int** myArray=NULL;<br />
<br />
int** AllocateArray(int nHeight, int nWidth)<br />
{<br />
int** newArray=NULL;<br />
int i, j;<br />
<br />
for (i=0; i < nHeight; i++)<br />
....
<br />
return newArray;<br />
}<br />
<br />
void FreeArray(int*** array)<br />
{<br />
}<br />
<br />
int** myArray=AllocateArray(32, 32);<br />
<br />
myArray[i][j]<br />
<br />
FreeArray(&myArray);<br />
I don't remember the rest of the code.... that's the purpose of this topic
Thanks for helping me.
Fred.
There is no spoon.
-- modified at 8:55 Saturday 25th February, 2006
|
|
|
|
|
ok, I have found back the algorithms
Thanks for the help
Best regards.
Fred.
There is no spoon.
|
|
|
|
|
See here. You'll need to substitute malloc() and free() accordingly.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
ok, I have found back the algorithms
Thanks for the help
Best regards.
Fred.
There is no spoon.
|
|
|
|
|