Go Back   Club CDFreaks - Knowledge is Power > International Chat: Software related > Nero SDK Discussion Forum


Commercial message



Nero SDK Discussion Forum Discuss, NeroGetAvailableDrivesEx(MEDIA_CD, NULL) at International Chat: Software related forum; I'm using CBuilder6 and NeroAPI version 5.5.8.3 I create a NeroAPI.def from NeroAPI.dll , make some changes e create NeroAPI.lib and linked to my project , they compile well The NeroInit() return NEROAPI_INIT_OK , NeroGetAvailableDrivesEx(MEDIA_CD, NULL) return a handle != NULL , but NeroDeviceInfos->nsdisNumDevInfos always return


Reply
 
Thread Tools
Old 22-02-2004   #1 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 7
NeroGetAvailableDrivesEx(MEDIA_CD, NULL)

I'm using CBuilder6 and NeroAPI version 5.5.8.3
I create a NeroAPI.def from NeroAPI.dll , make some changes e create NeroAPI.lib and linked to my project , they compile well
The NeroInit() return NEROAPI_INIT_OK , NeroGetAvailableDrivesEx(MEDIA_CD, NULL) return a handle != NULL , but NeroDeviceInfos->nsdisNumDevInfos always return 0 (zero devices) ??
The NeroCmd , return 3 devices
I'm nothing using the NeroAPIGlueConnect( ) because I can't compile using the NeroAPIGlue.lib in CBuilder
I try to use the LoadLibrary() too but I get the same result
I'm using the correction below , but have se same problens
#pragma pack(push, 8)
#include "NeroAPI.h"
#pragma pack(pop)

Please some one can tell me , what I'm missing

Thanks in advance
Roberto
rtt100 is offline   Reply With Quote
Old 24-02-2004   #2 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 7
I have discovered my mistake , I had copy all the *.dll from nero to my project diretory , the correty way is make PATH=C:\Arquivos de programas\Ahead\Nero

BUT now I'm geting a strange struct from DLL
The struct is declared as

typedef struct tag_NERO_SCSI_DEVICE_INFO
{
char nsdiDeviceName[64];
char nsdiHostAdapterName[8];
DWORD nsdiHostAdapterNo;
DWORD nsdiDeviceID;
NEROAPI_SCSI_DEVTYPE nsdiDevType;
char nsdiDriveLetter;

.......................
}

But in CBuilder I had noted that the that nsdiDeviceName and other char [] became short , and I have to change the struct to

typedef struct tag_NERO_SCSI_DEVICE_INFO
{
char nsdiDeviceName[32];
char nsdiHostAdapterName[4];

.......................
}


to get the correct nsdiHostAdapterName

Some one know why is it happen



Thanks in advance
Roberto
rtt100 is offline   Reply With Quote
Old 28-02-2004   #3 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 7
I would like to know if is possible use the NeroAPI in CBuilder , If not when , will be release the new version with a NeroAPIBlue.lib that can be converted to OMF , and fix the problens that I'm getting

The only way I found to fix this is make a DLL using Visual Studio C .NET , and exporting the function using a DEF file with the right decorate names

Thanks
Roberto
rtt100 is offline   Reply With Quote
 
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with NeroGetAvailableDrivesEx (MEDIA_CD, NULL) itaunaprofana Nero SDK Discussion Forum 1 29-08-2006 15:51
NeroGetAvailableDrivesEx(MEDIA_CD, NULL) rtt100 Nero SDK Discussion Forum 4 22-08-2006 21:09
pCDInfo==NULL Tors Nero SDK Discussion Forum 1 25-01-2005 15:01
NeroGetAvailableDrivesEx(MEDIA_CD, NULL) Steve Wagner Nero SDK Discussion Forum 1 20-02-2004 15:46
Dos + Null modem Net_Loony Dutch: De Woonkamer 8 27-11-2001 09:44


All times are GMT +2. The time now is 20:42.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0