LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Ridiculous errors in "extcode.h"

Hey Burcu,

I tried to emulate with my example what you said you were doing in your LabVIEW VI.  Did I miss anything? 

What else are you doing in the CVI application?  If you are doing anything other than calling this DLL, can you try a new project and call it there?

If I left out some of your application, let me know, but this sounded like all that you were doing.
Thanks,

Andy McRorie
NI R&D
0 Kudos
Message 11 of 22
(2,534 Views)
Hi Mr McRorie,
Actually the project that you emulated works fine. But more than creating a new wav file from the whole file, I wish to play just the given part (with the parameters; start sample, number of samples and also the file path) of a wav file.
And for this I used 'Snd Read Wave File', 'Array Subset' and 'Snd Write Wave File' modules in LabView.  But when I call the play_part_of_a_wav_file(start_sample, number_of_samples,file_path) function included in dll from the CVI, I get the error given above during the run time.
--
Burcu
0 Kudos
Message 12 of 22
(2,520 Views)
Hey Burcu,

Did you try using the newer sound VIs (which were changed in 8.0)?  Additionally, you never mentioned what you are using to play the file.  What if you add the operation to play the file to my example?  At this point, you can either try to narrow it down to what component might be using Managed code (in an attempt to replace it with something else) or you can look into Microsoft's Debugging Assistant window and how to disable this (if it is possible).  If you want to go with the former option, try to narrow it down.  Since my example is working, it might be best to start with that and add components of your program until the window appears.  If the latter, you can check Microsoft resources for information on the window. 

If you are looking into LabVIEW-specific VIs or help on narrowing down your LabVIEW DLL, I would recommend posting on the LabVIEW discussion forum.
Thanks,

Andy McRorie
NI R&D
0 Kudos
Message 13 of 22
(2,505 Views)
Actually, I haven't tried the new sound VI's. As I mentioned, I used Snd Write Wave File for playing the wav file by creating a new project independently from your project.
Finally I found another solution by using Windows SDK and Windows API functions for playing the wanted part of the wave file.
Thanks for your attention,
--
Burcu
0 Kudos
Message 14 of 22
(2,490 Views)

 

Hi Burcu,

 

I have completely the same issues as yours. I think these error are not caused by versions because my Ni verison is Labview2012 and Labwindows2012. I wonder whether we missed some configuration or including files when call DLL  when building DLL and calling DLL.

 

Would you kindly help me if you has fininally solved these issues?

 

Thanks & regards,

 

Lily Cheng

0 Kudos
Message 15 of 22
(2,083 Views)

I don't think you can expect a response from malaguena on such an old thread: his/her last post dates back to 2007!

 

Reviving 7-years-old threads is not the best thing to do when you have some problem, especially when the original thread spans over multiple problems (in this case definition of some function and playing wavs): it is better to open a new thread describing the problem you are facing and linking the old one if relevant.

 

Now, if you can describe your difficulties in detail we can try helping you (better in a new thread, as I told you)



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 16 of 22
(2,065 Views)

Hi Ridiculous

 

I am so sorry to follow the such old thread for I was so eager for help and ignored the date.

 

 

 

Lily Cheng

0 Kudos
Message 17 of 22
(2,055 Views)

Hi, 

please tell mi how did you solve your problem with extcode.h.

 

Thanks

0 Kudos
Message 18 of 22
(1,962 Views)

I have almost forgotten about how to solve this problem exactly. Maybe you could try to change the orders of head files including. 

 

Regards,

 

Lily

0 Kudos
Message 19 of 22
(1,949 Views)

Lily,

 

Ha ha. A year ago someone fixed this problem and you asked how they did it. Then you fixed it and did not post what you did.

 

Now I have the same problem and nobody ever posted what they did for the fix. I find this very common in these threads.

 

“extcode.h” (443,45) syntax error, found “<” expecting “)”.

“extcode.h” (443,45) Missing identifier.

“extcode.h” (443,45) syntax error, found “<” expecting “)”.

“extcode.h” (443,45) Unrecognized declaration.

“extcode.h” (443,45) syntax error, found “<” expecting “)”.

“extcode.h” (443,45) Warning: Empty declaration.

“extcode.h” (443,45) syntax error, found “)” expecting “;”.

“extcode.h” (443,45) Unrecognized declaration.

:

:

 

This very large compiles fine on another machine (XP). Moved it to another machine (Win7) and get this error. I might add that the c file only has 1 include fine named in it, and it is extcode.h, so I can't rearrange anything.

 

Mike

0 Kudos
Message 20 of 22
(1,869 Views)