|
Have you tried stepping into the exchange( ) function to see where precisely it chrashes?
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
no,But I don't think the function has problem,My OS is winXP, Do your think os can cause problem?
|
|
|
|
|
It should not. The error message you receive indicate a problem with the calling convention (i.e. using __stdcall when __cdecl should have been used or vice versa). This is what the CALLBACK directive should have fixed. I would try to load the project that creates the dll into Visual C++, set the executable that loads your dll as "Executable for debug session" (Project-Settings-Debug tab). Set a breakpoint inside your exchange function and step through the code.
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
But my function of the dll was used successfully in powerbuilder 7.0,no error message showed!!
By the way,shall I need declare others except AFX_MANAGE_STATE(AfxGetStaticModuleState()) in function body???
I don't use __declspec(dllexport) in fuction declaration in head file!
|
|
|
|
|
cradle wrote:
By the way,shall I need declare others except AFX_MANAGE_STATE(AfxGetStaticModuleState()) in function body???
You should not need to do anything else inside the function.
However, where you declare your function pointer where you want to use it, do it similar to this:
typedef int ( CALLBACK* MYFUNC )(int);
and check if the problem still remains.
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
so bad,the problem remain,:(I'm always give it up!!!
would you mind to create a DLL project and a using dll project for me?The dll contain a just simple function,and the other project to use this dll funtion,Thank you very much for helping me so much times,dabs,thanks!!!!
my E-mail is cradlexp@hotmail.com.
|
|
|
|
|
I have debuged it, that show "unhandled it in MyProj.exe(GDI32.DLL):0xC0000005:Access violation."
I have placed breakpoint at (pFunction)(5);
What is it mean???I am confused!!Help me!!!!
|
|
|
|
|
Hello all
i have developed (VC7) a Cstatic derived CUlrLink class to enable url clicking and browsing in my about dialog boxes.
It basically uses a custom cursor (IDC_HAND) created inside the 'res' subfolder.
As i'd like to reuse this stuff in all my projects, I've tried something like:
main projects folder
\--> reuse_code\urllink.cpp, urllink.h,
\--> reuse_code\res\hand cursor
\--> newapplication
in this folder i was planning to use an #include "..\common\urllink.h"
but i need also the cursor hand to be included, so i have at least to copy it inside the local 'res' folder, and i have noticed have also to manually change the local resource.h file...
Futher problems when i try to create a reusable 'about dialog box' including an usual couple url link + a mailto link. Fo esample I have to examine the Resources ids etc.
In VC6 i remember there was a 'components gallery', i had only to select a 'component' and it was included , say, with the right references inside a new project.
Summarizing, how do you reuse your code in a situation close to the above?
As pointed out, i don't get troubles with classes not using some resources (just including the .h files and adding the .h/.cpp files seems enough)
thanks in advance
|
|
|
|
|
Jan Van Der Mix wrote:
In VC6 i remember there was a 'components gallery', i had only to select a 'component' and it was included , say, with the right references inside a new project.
Yes, this still exists, and it's for COM components. You can create dialog templates in code, the info is in MSDN. To be honest, I'd think a cursor would be a small enough graphic that you could store it as byte data in your code easy enough also.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Jan Van Der Mix wrote:
In VC6 i remember there was a 'components gallery', i had only to select a 'component' and it was included , say, with the right references inside a new project.
Toolbox window, right-click, Customize...
Back to real work : D-19.
|
|
|
|
|
NTDLL! 77f7f570()
NTDLL! 77f8ec53()
GDIPLUS! 70d282c7()
GDIPLUS! 70d2829c()
GDIPLUS! 70d04d90()
GDIPLUS! 70d33b92()
GDIPLUS! 70d31034()
Gdiplus::GraphicsPath::Outline(const Gdiplus::Matrix * 0x00000000, float 0.250000) line 747 + 19 bytes
Anyone know why I get a User Breakpoint? Should I be worried? The breakpoint still happens in release mode via the debugger, but when running the app outside of vc, nothing complains...
Thanks,
swine
Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
|
|
|
|
|
Looks to me like you're passing in a null pointer to GraphicsPath::Outline.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Cmon, i thought you were the gdiplus guru!
GraphicsPath::Outline(matrix, flatness)
The Outline method transforms and flattens this path, and then converts this path's data points so that they represent only the outline of the path.
Status Outline(
const Matrix* matrix,
REAL flatness
);
Parameters
matrix
[in] Optional. Pointer to a Matrix object that specifies the transformation. If this parameter is NULL, no transformation is applied. The default value is NULL.
flatness
[in] Optional. Real number that specifies the maximum error between the path and its flattened approximation. Reducing the flatness increases the number of line segments in the approximation. The default value is FlatnessDefault, which is a constant defined in Gdiplusenums.h.
Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
|
|
|
|
|
Swinefeaster wrote:
Cmon, i thought you were the gdiplus guru!
Who has been telling lies about me ?
Seriously, I do no graphics work at all anymore, I could probably (re)learn quite a bit by reading my old articles.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
that's too bad --- graphix is where the action is!
did you run into any funny stuff in gdi plus? i've ran into a few weird things (had to even write a wrapper around GraphicsPath for some of them). but did you ever run into any user breakpoints like this?
cheers,
swine
Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
|
|
|
|
|
Swinefeaster wrote:
that's too bad --- graphix is where the action is!
It's fun, but it's not really where the money is. I'm glad to have learned it, but also glad to have moved on.
Swinefeaster wrote:
but did you ever run into any user breakpoints like this?
Nope, not that I can recall.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Hello, I'm sure that my problem must be easy to solve:
When I resize a property sheet and it's tab control I must know how many rows of tabs will the tab control occupy, in order to resize it properly.
Anybody knows how to do it?
NOTE:
When I resize the tab control it's shown in an ugly way, but when I change of tab it gets redrawn and it looks like the problem gets solved...
thank you in advance.
|
|
|
|
|
I wanted to parse URLs out of HTML page (for building web spider) and stucked over possible variations of URL. Whatever rule i try to apply to searching function there is allways at least one exception where it fails; does someone knows for any way to handle it all or maybe some library that has that implemented (not mozila source, please )?
|
|
|
|
|
Use the WinInet InternetCrackUrl function.
When I am king, you will be first against the wall.
|
|
|
|
|
I dont want to "crack" url to its components (server/dir/file), but i want to get all urls that are stored inside single html file. If it would be only HTML 1.0+ everything would go well, but there is allso javascript, etc.
|
|
|
|
|
hey there all, i'm having trouble getting a toolbar to be streched across the whole width it can and having it dockable, i can get it to strech when i turn docking off, any ideas?
thanks for any help.
luke
|
|
|
|
|
I want to create a program that log all printing done in a specific network printer. Do I need to play with EnumJobs and GetJob? Or do I need to hook to API/DLL? How?
|
|
|
|
|
I am reading up on some COM sample.. I have problem understanding the way they do casting:
//
STDMETHODIMP CUserInfo::QueryInterface(REFIID iid, LPVOID *ppv)
{
*ppv = NULL;
if (IID_IUnknown == iid)
*ppv = (LPVOID)(IUnknown *)this;
else if (IID_IUserInfo == iid)
*ppv = (LPVOID)(IUserInfo *)this;
else
return E_NOINTERFACE; //Interface not supported
//Perform reference count through the returned interface
((IUnknown *)*ppv)->AddRef();
return NOERROR;
}//QueryInterface
QUESTION: Casting. I can understand:
long nLong;
double nDouble;
nLong = 10;
nDouble = (double) nLong;
But I have no idea what's the different between:
*ppv = (LPVOID)(IUnknown *)this;
*ppv = (LPVOID)(IUserInfo *)this;
*ppv = this;
*ppv = (LPVOID)this;
Thanks!
norm
|
|
|
|
|
A coclass that implements IUnknown and IUserInfo has two different vtables, one for each interface. Thus (IUknown*) this is a different address from (IUserInfo*) this .
The cast to LPVOID is unnecessary, as the language allows implicit conversion of any pointer type to void* .
--Mike--
"alyson hannigan is so cute it's crazy" -- Googlism
Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Given that they are casting to a LPVOID by default, the middle steps seem pointless. I try to use smart pointers instead of this sort of ugliness, or C++ casts at least.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|