CCS64 Forum

A forum to discuss issues about CCS64!
It is currently Mon Sep 01, 2014 8:30 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Mon May 11, 2009 3:25 pm 
Offline

Joined: Mon May 11, 2009 1:23 pm
Posts: 7
When I start CCS with (like described in the help file)

CCS.exe "C:\Mike\S4.D64,2" -autostart -windows

CCS doesn' start with the 2nd but with the 3rd progam.

It seems that the index of the first program is 0.

Can anyone help me?

Mike
http://www.purmike.de


Top
 Profile  
 
PostPosted: Mon May 11, 2009 7:37 pm 
Offline
Site Co-Admin

Joined: Wed Aug 20, 2003 2:46 pm
Posts: 753
Location: East Yorkshire, England
You don't need the " signs... So it should be:
CCS.exe C:\Mike\S4.D64,2 -autostart -windows

If you are using a long file-name for your D64 file, you need to enclose it in " signs. But in the example above, you aren't.

_________________
Kind regards,

Stuart Toomer.


Top
 Profile  
 
PostPosted: Mon May 11, 2009 9:19 pm 
Offline

Joined: Mon May 11, 2009 1:23 pm
Posts: 7
The problem aren't the "" signs because I start CCS with the API function ShellExecute

(ShellExecute hwnd, "open", "c:\program files\ccs\ccs.exe", "C:\Mike\S4.D64,2", ....)

CCS starts and opens the wrong c64-file in the image "C:\Mike\S4.D64". In the above command line i put 2 but CCS starts the 3rd c64-file!

Can you reproduce it?

Mike


Top
 Profile  
 
PostPosted: Mon May 11, 2009 9:32 pm 
Offline
Site Co-Admin

Joined: Wed Aug 20, 2003 2:46 pm
Posts: 753
Location: East Yorkshire, England
Then, you ought to have it as:
(ShellExecute hwnd, "open", "c:\program files\ccs\ccs.exe", "C:\Mike\S4.D64,2 -autostart -windows", ....)

_________________
Kind regards,

Stuart Toomer.


Top
 Profile  
 
PostPosted: Tue May 12, 2009 12:31 am 
Offline

Joined: Mon May 11, 2009 1:23 pm
Posts: 7
Hello Stuart,

thank you for your patience. But the problem still exists. After your suggestion
ShellExecute hwnd, "open", "c:\program files\ccs\ccs.exe", "C:\Mike\S4.D64,2 -autostart -windows", ....
CCS only starts without opening a c64-file.

With the following command (within my program)
ShellExecute hwnd, "open", "c:\program files\ccs\ccs.exe", "C:\Mike\S4.D64,2" -autostart -windows,...
CCS starts and autostart the 3rd instead the 2nd file.

Please try to start CCS in your command line (replace xxx with the right path) and choose a .d64-file with more then 2 c64-files:

"c:\program files\xxx\CCS.exe" "C:\xxx\xxx.D64,2" -autostart -windows

Does really CCS autostarts the 2nd file?


Top
 Profile  
 
PostPosted: Tue May 12, 2009 7:48 am 
Offline
Site Co-Admin

Joined: Wed Aug 20, 2003 2:46 pm
Posts: 753
Location: East Yorkshire, England
I wonder if the part-number (2) is actually 0-bound, so 2 is actually the 3rd, and 0 is the 1st... Try using 1 instead of 2, in order to auto-start the 2nd program within the D64 file.

_________________
Kind regards,

Stuart Toomer.


Top
 Profile  
 
PostPosted: Tue May 12, 2009 1:38 pm 
Offline

Joined: Mon May 11, 2009 1:23 pm
Posts: 7
Please correct the help file of ccs...


Top
 Profile  
 
PostPosted: Tue May 12, 2009 8:28 pm 
Offline
Site Co-Admin

Joined: Wed Aug 20, 2003 2:46 pm
Posts: 753
Location: East Yorkshire, England
purmike wrote:
Please correct the help file of ccs...


So, can you confirm that my suggestion is correct (i.e. that the part-number is 0-bound)?

_________________
Kind regards,

Stuart Toomer.


Top
 Profile  
 
PostPosted: Mon May 18, 2009 5:03 pm 
Offline

Joined: Mon May 11, 2009 1:23 pm
Posts: 7
Yes, I agree with you. The part number is 0-bound and means the 1st program within a d64 file.

The CCS help file describes:
....
CCS C:\TheBestGames.D64,2 -window -autorun
- This will run CCS64 in windowed mode, and select the disk file image named TheBestGames.D64 as the current inserted floppy disk into disk drive with device 8, and then load the 2nd file from the directory of that floppy disk, and automatically start it.
...

I supposed it in my first post: " ... It seems that the index of the first program is 0...."

Mike


Top
 Profile  
 
PostPosted: Mon May 18, 2009 8:05 pm 
Offline
Site Co-Admin

Joined: Wed Aug 20, 2003 2:46 pm
Posts: 753
Location: East Yorkshire, England
purmike wrote:
Yes, I agree with you. The part number is 0-bound and means the 1st program within a d64 file.

The CCS help file describes:
....
CCS C:\TheBestGames.D64,2 -window -autorun
- This will run CCS64 in windowed mode, and select the disk file image named TheBestGames.D64 as the current inserted floppy disk into disk drive with device 8, and then load the 2nd file from the directory of that floppy disk, and automatically start it.
...

I supposed it in my first post: " ... It seems that the index of the first program is 0...."

Mike


I'll correct the HTML file and send it to Hakan for iclusion in future releases... Thank you for confirming this.

_________________
Kind regards,

Stuart Toomer.


Top
 Profile  
 
PostPosted: Wed Jul 22, 2009 11:08 pm 
Offline

Joined: Mon May 11, 2009 1:23 pm
Posts: 7
Hello,

I have another question: Is there a way to start CCS64 only with the file (= selected disc drive) like "CCS C:\TheBestGames.D64 -window"?
At the moment CCS64 always loads a program from the file.

Thanks and greetings,

Mike


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group