|
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.
|
|
|
|
|
|
The answer to this question is simple: You can't get the information. C++ is a statically typed language - When you cast a pointer to a void* you are throwing away this type information.
Steve
|
|
|
|
|
Modified
Thank you.
So I don't know enough information a bout casting.
But, if we write a function that does this casting, like below:
struct x st;
read ((void*)&st);
st.a=5;
Forgetting this cast, is there any way to find and get these information (you called type information)from compiler any where in our code?
Thanks alot in advanced
//This is not a signature
while (I'm_alive) {
printf("I Love Programming");
}
-- modified at 6:58 Saturday 25th February, 2006
|
|
|
|
|
The general pattern to this kind of stuff is this:
read((void*)&st);
void read(void* pData)
{
x* pX = (x*)pData;
}
Naturally if we have code like this we're in real trouble:
int data;
read((void*)&data);
The reason we get in trouble is that, since we throw away the type information with the void* cast we're forced to cast back in the read function and the compiler has no way of checking the validity of the cast. In general casts represent a design flaw, which is one of the reasons why C++ introduced the static_cast , const_cast and reinterpret_cast keywords - casts are ugly and so should look ugly and be easy to find. There are times when casting is necessary but this should only be at the low-level portions of an application and the actual casts should be hidden behind type safe interfaces.
Steve
|
|
|
|