|
A typical pointer problem. In your programm you are using a pointer with a bad target or are writing after end.
ie: char sz[5];
sz[7] = 0;//DAMAGE !!!!
Do single line debugging an check when there is access to the damaged memory.
Greetings from Germany
|
|
|
|
|
Can you be more specific
whitesky
|
|
|
|
|
Dear all,
Currently, I would like to add on a message box on each dialog in the project and enable user to just key in the numbers and then the current screen will jump to the desired screen, provided that the screen is not tied to any previous screen(if so, then it will then choose to jump to the first screen of the series. eg: if you wanna access C from A, then if you key in C, then it will then redirect to the B page first because it need to go through B before reaching C).
Please give any concepts or methods on how to handle this screen jumping at all existing screen in a project.
Thank you very much.
|
|
|
|
|
hello
when i make menu..we usually write text for the menu item.but i want insert image along with the menu item.
how can i do it.
thanx
|
|
|
|
|
Check this.
CP - Menus section you can find many articles on this.
|
|
|
|
|
See Here[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
hi
thanx for replying but my application is a Dialog Based Application and i hav menu in dialog.and images can be individual images.
plz clear my doubt.
thanx
|
|
|
|
|
I think the link that i provided itself has a dialog based sample..
|
|
|
|
|
In my list box , I input some chinese texts. However, it slow "&d2" to replace the words. How can i solve this problem?
|
|
|
|
|
Try writing the application using unicode.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
but it can't using unicode....another methods?
and i try to using unicode...it can't
-- modified at 3:41 Friday 14th July, 2006
|
|
|
|
|
i'm facing a problem, can someone help me with it? i do not know how come the window is unable to detect the location of the library files...
It goes like this:
//
// BioAPIClass.h
// Classes to simplify using the BioAPI from an application
//
#if ! defined (BIOAPICLASS_H)
#define BIOAPICLASS_H
// ../../../BioAPI/include/
// ../../../BioAPI/addins/maf
// ../../../BioAPI/imports/cdsa/v2_0/inc/
#if ! defined(USE_DEFAULT_PATHS) //FPC software structure
#include "bioapi_schema.h" // For data types etc
#include "port/bioapi_lock.h" // Needed for maf_collectn
#include "port/bioapi_port.h" // Needed for maf_collectn
#include "bioapi_err.h" // Needed for maf_collectn
#include "maf_collectn.h" // Needed for maf_util
#include "maf_util.h" // For App_Malloc, App_Free
#include "..\BioAPICommon\BioAPICommon.h" // Things common to application and BSP side
#include "..\BioAPICommon\FPCoreErrors.h" // FPC Specific error codes
#include "..\BioAPICommon\FPCoreConfig.h" // FPC specific additions
#include "..\CmnLibrary\CmnRegistry.h" // For registry access
#include "..\CmnLibrary\CmnDataStorage.h" // Data storage
#else //Default software structure
#include "..\..\..\BioAPI Consortium\BioAPI\source\include\bioapi_schema.h" // For data types etc
#include "..\..\..\BioAPI Consortium\BioAPI\source\include\port\bioapi_lock.h" // Needed for maf_collectn
#include "..\..\..\BioAPI Consortium\BioAPI\source\include\port\bioapi_port.h" // Needed for maf_collectn
#include "..\..\..\BioAPI Consortium\BioAPI\source\include\bioapi_err.h" // Needed for maf_collectn
#include "..\..\..\BioAPI Consortium\BioAPI\source\addins\maf\maf_collectn.h" // Needed for maf_util
#include "..\..\..\BioAPI Consortium\BioAPI\source\addins\maf\maf_util.h" // For App_Malloc, App_Free
#include "..\inc\BioAPICommon.h" // Things common to application and BSP side
#include "..\inc\FPCoreErrors.h" // FPC Specific error codes
#include "..\inc\FPCoreConfig.h" // FPC specific additions
#include "..\inc\CmnRegistry.h" // For registry access
#include "..\inc\CmnDataStorage.h" // Data storage
#endif
WHEN I COMPILE, IT SAYS:
Compiling...
FPCore Test.cpp
c:\documents and settings\student\desktop\research\fp\pc software\new folder\inc\bioapiclass.h(28) : fatal error C1083: Cannot open include file: '..\..\..\BioAPI Consortium\BioAPI\source\include\bioapi_schema.h': No such file or directory
FPCore TestDlg.cpp
c:\documents and settings\student\desktop\research\fp\pc software\new folder\inc\bioapiclass.h(28) : fatal error C1083: Cannot open include file: '..\..\..\BioAPI Consortium\BioAPI\source\include\bioapi_schema.h': No such file or directory
Error executing cl.exe.
FPCore TestD.exe - 2 error(s), 0 warning(s)
THIS IS WHERE MY LIBRARY FILES ARE KEPT:
C:\Documents and Settings\student\Desktop\research\FP\PC Software\New Folder\inc\
bioapi100.lib
bioapi_util.lib
BioAPIClasses.lib
BioAPIClassesD.lib
CmnLibrary.lib
CmnLibraryD.lib
PLESAE HELP ME WITH IT~ THANKS
Thanks & Regards
|
|
|
|
|
If u r using VC6,
Try this.
Go to Tools->Options->Directories and Include those all files and rebuild the application.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
C:\DOCUMENTS AND SETTINGS\STUDENT\DESKTOP\RESEARCH\FP\PC SOFTWARE\NEW FOLDER\INC
this is what i've included according to ur advise.. but still, the errors are still exists... hmmm... why is that so?
Please help... Thanks
|
|
|
|
|
The easist way to solve all problems is to simplify them. Copy all files in short directories as "Header" or "libs.
The message is clear:
c:\documents and settings\student\desktop\research\fp\pc software\new folder\inc\bioapiclass.h(28) : fatal error C1083: Cannot open include file: '..\..\..\BioAPI Consortium\BioAPI\source\include\bioapi_schema.h': No such file or directory
the file bioapiclass.h isnt there
..\..\..\BioAPI Consortium\BioAPI\source\include\bioapi_schema.h'
believe the compiler. Remove the "..\..\" Part.
Greetings from Germany
|
|
|
|
|
By the way, what is the meaning of "..\..\" ??
Thanks,
Regards
|
|
|
|
|
we3Guy wrote: By the way, what is the meaning of "..\..\" ??
Each ".." means to move up by one directory.
For eg: if the current directory is C:\nibu\babu\thomas, then the first ".." will take you to babu, the next one to nibu, the next one to C:.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
All Right.... Thanks guys
Best Regards
|
|
|
|
|
Can I read a file which is already opened for writing????
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
If I am not wrong,
Unless u close the handle ,u cannot open the same file again.
If u want to read and write at the same time use flags like CFile::modeReadWrite
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Thats i know.
My problem is that this file is opened for write by another application. I have no information about this application.
I want to read it from my application.
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
Then to my knowledge,it is not possible to read .
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
It all depends on the share mode used to open the file. If the other application opened the file with READ access and using FILE_SHARE_READ, then you can read the file. Try opening the file with the same and see what happens.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
I made the file association of my file type with my application, and now when I double click the file, it opens my application but gives the error message
"Windows cannot find 'c:\downloads\file.hs1'. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search."
The file path is shows is the file I just clicked, so it obviously exists.
what i have to do.
|
|
|
|