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 04-03-2004   #2 (permalink)
bhk
New on Forum
 
Join Date: Feb 2004
Posts: 22
On start sorry for my English, but I think that You understand me

I have had some problems with BCB6 and NeroApi.

Lines:
#pragma pack(push, 8)
#include "NeroAPI.h"
#pragma pack(pop)

not repairing all problems.
I must using:

#pragma pack(push, 8)
#pragma option push -b
#include "NeroAPI.h"
#pragma pack(pop)
#pragma option pop

Except this you must remember to succesfully init NeroApi with
NeroInit function. Only if initialization is successed you can use NeroGetAvailableDrivesEx function.
If it not help you try to write me email (bk0@bodzio.one.pl)
than I try to help you
bhk is offline   Reply With Quote
Old 05-03-2004   #3 (permalink)
New on Forum
 
Join Date: Feb 2004
Posts: 7
Thank you for the help
The #pragma pack(push, 8) don't work to me too , because the CBuilder default compiler alread is -a8

I'm using now
#pragma option push -b
#include "NeroISODemo.h"
#pragma pack(pop)

The problem with NeroAPIGlue.lib it'is not a Import Library , it is a Object Library , and Coff2omf.exe is used only with Import library

You can use
>tdump -C NeroAPIGlue.lib
to see all *.obj it have

I'm looking for a application that convert COFF Object Library to OMF , but I can't find one

I solve the problens with nero struct , by now , hava another problem with NeroBurn() it is return error "Access violation at address 326668EB in module 'CC326MT.DLL'

Now I'm using MSVC to make a DLL , to use with CBuilder , I have less problens to solve

Thank again for the Help
Roberto
rtt100 is offline   Reply With Quote
Old 22-08-2006   #4 (permalink)
New on Forum
 
Join Date: Aug 2006
Location: Brazil
Posts: 7
Re: NeroGetAvailableDrivesEx(MEDIA_CD, NULL)

Hi rtt100.

I think I am having a problem like you had with the NeroGetAvailableDrivesEx(MEDIA_CD, NULL) function of nero API.

I don't have a NeroAPI.lib so this is the way I am using the function:


typedef NERO_SCSI_DEVICE_INFOS* __stdcall (*TNeroGetAvailableDrivesEx) ( bool, unsigned long );


__fastcall TFormPrincipal::TFormPrincipal(TComponent* Owner) : TForm(Owner)
{

TNeroGetAvailableDrivesEx PegaGravadoras;

HInstDLL = LoadLibrary("neroapi.dll");

PegaGravadoras = ( TNeroGetAvailableDrivesEx ) GetProcAddress ( HInstDLL, "NeroGetAvailableDrivesEx" );

m_pndiDeviceInfos = PegaGravadoras ( MEDIA_DVD_ANY , NULL );

FreeLibrary(HInstDLL);
}


It compiles well, but when I Run it, the application crashes. Somebody can explain me why?

Thanks in advance.

Ubaldo.
itaunaprofana is offline   Reply With Quote
Old 22-08-2006   #5 (permalink)
New on Forum
 
Join Date: Aug 2006
Location: Brazil
Posts: 7
Re: NeroGetAvailableDrivesEx(MEDIA_CD, NULL)

Complementing my last post I am using Borland C++ Builder 6, NeroAPi.dll 6.3.0.2, and Nero 6.6 OEM Suite.
itaunaprofana 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
pCDInfo==NULL Tors Nero SDK Discussion Forum 1 25-01-2005 15:01
NeroGetAvailableDrivesEx(MEDIA_CD, NULL) rtt100 Nero SDK Discussion Forum 2 28-02-2004 20:22
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 18:49.


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