Recent Posts

Pages: [1] 2 3 ... 10
1
The 3D Model Collection / Morgan 3Wheeler Hot Rod
« Last post by Patrice Terrier on September 14, 2020, 03:18:06 pm »
Morgan 3Wheeler Hot Rod
Created by Patrice Terrier (ObjReader)

Note: This model requires ObjReader version 3.00 and above









Note: Attachments are only available to registered users.

2
64-bit SDK programming / Re: zTrace version 3.00
« Last post by James Fuller on September 10, 2020, 08:02:57 pm »
James

You are just one year older than me ;)


Where are you living?

I am here:
https://goo.gl/maps/bA97cRTi8FeZbo2Q9

James
3
64-bit SDK programming / Re: zTrace version 3.00
« Last post by Patrice Terrier on September 10, 2020, 07:28:24 pm »
James

You are just one year older than me ;)

Obviously i can't see any difference between the 2 codes, except that i am using the Visual Studio environment, while you are using the command line.

I am using Windows 10 Professional 2004 OS version 19041.508

Yes, you have my permission to include zTrace64 with the upcoming BcxAdp.

Where are you living?


4
64-bit SDK programming / Re: zTrace version 3.00
« Last post by James Fuller on September 10, 2020, 04:36:42 pm »
Patrice,
  After a reboot of me (a good nights sleep) and the computers my OCD would not let me drop this. I found I'm not as bad as I previously thought.
I again used zTrace64.dll from the forum posting.
After the window popped up I right clicked and selected the create debug.txt.
After the popup menu closed I right clicked again and the create debug.txt item was checked.
I then closed the ztrace window using the red "x"
The ztrace.cfg file was created in my user temp folder but nothing was written to it. It had a size of 0
When I ran my app again and right clicked the ztrace window the create debug.txt was not checked.

I then took the ztrace 3.01 ztrace.cpp source and only added a couple of lines at the top. No change to the GetTempPath. I compiled with the attached buildit.bat file.
I replaced zTrace64.dll (3.00) from the forum with the new 3.01 (renamed 3.02 by me).

I deleted ztrace.cfg from the temp folder and repeated the above. This time the ztrace.cfg had a size of 1
and all worked as expected.

The Test_zTrace.cpp was created with BCX and is a non-unicode app that just calls zTrace through ZPRINT which is defined as:
#define ZPRINT(x) zTrace(AnsiToWide((char*)(x)))

platform:
Windows 10 64. version 2004(osbuild 19041.508)

I'm not going to beat on this anymore. I don't know why mine works and your's does not? I now have a working version.

I would like permission to include my version with an upcoming BcxAdp (BCX Application Development Platform)
All of your copyright notices and acknowledgments would be included.

Mr BCX has done a fantastic job on updating BCX. Now with a working pre-compiler meta command $PP I do not have to fork and change BCX to add more of the c++ items I want.

Thank for your patience.
Age: 72
James




5
64-bit SDK programming / Re: zTrace version 3.00
« Last post by Patrice Terrier on September 10, 2020, 02:27:37 pm »
James

How old are you, i think coding is good to keep our neurone at work ;)
6
64-bit SDK programming / Re: zTrace version 3.00
« Last post by James Fuller on September 09, 2020, 09:10:22 pm »
Patrice,
  I guess I'm just getting too old for coding!
Delete this topic. It was my oversight.
I thought just unloading the zTrace dll by termination of the program that called it would create/update the cfg file.
I also thought I wrote a small snippit that printed GetTempPath and it did not have a trailing "\", but on further review it does,just as you said.
Sorry to have bothered you.
James

 
7
64-bit SDK programming / Re: zTrace version 3.00
« Last post by Patrice Terrier on September 09, 2020, 09:07:52 pm »
James

GetTempath, should already have a trailing back slash, please check the value returned by the API before adding zTrace3.cfg.

Other way L"\\" should be added only if missing.

See the PathAddBackslash API
8
64-bit SDK programming / Re: zTrace version 3.00
« Last post by James Fuller on September 09, 2020, 04:12:13 pm »
Patrice,
   This is much easier. A bit bigger but ....
I just added a few lines to the ztrace.cpp file
I do have to close the zTrace window with the "x" instead of having the program that called it exit for it to be persistent.

James
9
64-bit SDK programming / Re: zTrace version 3.00
« Last post by Patrice Terrier on September 09, 2020, 03:02:56 pm »
By me, GetTempath always return the path with a trailing back slash

even (from my Windows config) when SET is defined only like this:
TEMP=C:\Tmp
TMP=C:\Tmp

Tell me if you want the project converted to VS2019.
10
64-bit SDK programming / Re: zTrace version 3.00
« Last post by James Fuller on September 09, 2020, 12:41:03 pm »
Patrice,
  I think I found the issue. Your zTrace3.cfg file is never created.

This is my temp folder as returned from GetTempPath()

C:\Users\jcful\AppData\Local\Temp

From your source
Code: [Select]
    WCHAR zPath[MAX_PATH]; __stosb((LPBYTE)&zPath, 0, MAX_PATH * 2);
    GetTempPath(MAX_PATH - 12, zPath); lstrcat(zPath, L"zTrace3.cfg");

You do not add  a "\" before the name.


I was not able to compile the project with VS 2019. There were hard coded paths that VS whined about.

Why zTrace64 works for you ???


James
Pages: [1] 2 3 ... 10