global dynamic array.
-
Hi all, I am making one win32 application using VC++.NET. I have one global array of char defined as
char * picArray;
And it is initialized in one of the function of applicationpicArray = new char[Height*Width];
But when I am trying to use this array in another function I am not getting data values. Can I know what is the solution for this? Thanks in advance, Priyank. -
Hi all, I am making one win32 application using VC++.NET. I have one global array of char defined as
char * picArray;
And it is initialized in one of the function of applicationpicArray = new char[Height*Width];
But when I am trying to use this array in another function I am not getting data values. Can I know what is the solution for this? Thanks in advance, Priyank. -
Hi all, I am making one win32 application using VC++.NET. I have one global array of char defined as
char * picArray;
And it is initialized in one of the function of applicationpicArray = new char[Height*Width];
But when I am trying to use this array in another function I am not getting data values. Can I know what is the solution for this? Thanks in advance, Priyank.priyank_ldce wrote:
But when I am trying to use this array in another function I am not getting data values
If you don't fill the array with values, it's logical that you cannot get data value. Can you explain exactly what you are doing, what the problem is and what you expect ?
Cédric Moonen Software developer
Charting control [v1.1] -
Hi all, I am making one win32 application using VC++.NET. I have one global array of char defined as
char * picArray;
And it is initialized in one of the function of applicationpicArray = new char[Height*Width];
But when I am trying to use this array in another function I am not getting data values. Can I know what is the solution for this? Thanks in advance, Priyank.priyank_ldce wrote:
picArray = new char[Height*Width];
Are you its assigned value somewhere in your application, bfore using it ?
Prasad Notifier using ATL | Operator new[],delete[][^]
-
Hi all, I am making one win32 application using VC++.NET. I have one global array of char defined as
char * picArray;
And it is initialized in one of the function of applicationpicArray = new char[Height*Width];
But when I am trying to use this array in another function I am not getting data values. Can I know what is the solution for this? Thanks in advance, Priyank.hi Is ur another function where u r getting the value is defined in same file ,where u are declaring the char *picArray as global. The more globas u use,will create more problem when the application grows big. So pls make try to avoid it
VIBIN "Fool's run away,where angle's fear to tread"