error of redeclaration exporting DLL sgtruct

Another day another problem.

Fisrtly, I would like to thank to all those who want to help these a quite obvious N00b in the field of the ICB.  I am going through a learning curve steep with CVI at the moment...

My problem is:

I get an error of "Redéclaration" trying to ocmpile my DLL:

110, 1 redeclaration of 'ListDevices' previously stated at somethingorother.h:37.

I want to pass a pointer to a struct for my DLL to be filled by a C routine.  Here is my definition of Struct

struct {Deviceinfo
int vid;
int pid;
int Interface;
char serialnr [255];
};
   
struct {DevList
int Count;
struct Deviceinfo devs [128];
};

I want to pass a pointer to the DevList structure.

My function declaration (.c file) is

void ListDevices (struct DevList * buf)
{

and my export declaration (.h file)

void ListDevices(struct DevList *);

Someone at - it ideas about what I'm doing wrong?  I am aware that 128 cases of 255 characters is a bit excessive, but I want to walk before I run.  It is work comes before optimization.  I can only address one problem at a time.

Shane.

Heh,

just solved the problem.

Struct definitions must go in the .h, no not the .c (their location far) file so that the .h and .c definitions to 'see' the same statements.

before treated .h. c. must remember that.

Shane.

Tags: NI Software

Similar Questions

  • Loading of a DLL on RT: Missing Export "DecodePointer" "Kernel32.dll" and 7 error when calling the DLL

    Hi, I recently changed to Visual Studio 2010 and Windows 7 64-bit.

    I have an existing Office RT system running RT 2009.  This system calls a DLL that I already built using Visual Studio .net 2003 and Windows XP.

    Since I've recompiled the DLL I get an error 7 file not found error when I call the RT DLL, even if I simply replaced the old DLL with a new one in the file system so the path has not changed.

    I also noticed that the message on the screen connected to the RT system during startup:

    "achieveworldpeace.dll" load error: lack of export 'DecodePointer' of ' Kernel32.dll'.

    Any ideas on this problem?  It is perhaps as simple as a switch in the compiler?

    Thank you.

    I'm not sure it's a simple switch in the project settings in Visual C. The problem is clearly in the standard C runtime library that gets linked to your DLL and refers to exports of Windows which are not available on the RT system. Don't forget that the RT system is a limited Win32 API emulation.

    I usually avoid these problems using Visual C 6 to create DLLs for LabVIEW projects. The standard library of the C runtimes will not know what Windows API reference more recent exports because they have supported even under Win95. So unless your explicitedly reference code not supported RT APIs you wouldn't have problems. If you do not use the standard C file i/o functions and management of memory in your DLL functions, you can also try to link statically C runtime libraries in your DLL, or vice versa depending on what you have now. It may or may not work. Otherwise there is not much else but by using an earlier version of Visual Studio.

  • Equium A60 won't start - error message: Load needed DLLs for kernel

    The problem is the following; in an attempt to start, I get an error message: "Load needed DLLs for kernel.
    Re-install? I made this countless times.

    Following forums, I discovered that this could be a memory problem. However, my laptop has a built-in RAM and I can't change it. I changed that in the expansion without result slot.

    Any suggestions on how to deal with this problem will be greatly appreciated.
    Blessings on you.

    Hello

    Richard's right. Also check it please this document http://support.microsoft.com/kb/812450/en-us maybe it helps!

  • Impossible to play games, get the error message, the MSVCP60.dll file is missing

    I got the game of mahjong quest and game of mahjong quest 2. Now I can not play
    I get an error message MSVCP.60.dll file is missing. Error 126
    Is there a solution to this problem

    Thanks a lot for your answer
    I took my computer to the local repair man
    It solved the problem for me.
    Concerning
    Shirley

  • STOP: c0000221 Unknown Hard Error\Systemroot\System32\ntdll.dll

    I have a Dell Vostro 1500 running Windows XP Home edition.  During the Windows boot the system falls down and shows the error in the title above. I replaced and improved hard drive and modules memory live with Dell components and tried to launch the system to start disk.  Same result screen, blue with the unknown hard Error\Systemroot\System32\ntdll.dll STOP: 0000221.  Then new hardware configuration and system bootable drive equals the same result.  Any advice will be appreciated.

    Thank you, everyone, for all the good advice and help. Interestingly, I used a reinstall drive different (one for the same version of Windows XP SP2), and it worked fine. I think this would indicate that the original disk could have been the cause of the problem, but I tried to install the operating system with this drive just to be safe, and it worked. It should be noted that I did no changes to the machine until I tried the new disk, then retried first that I tried to use to reinstall the operating system. This suggests that, regardless of the problem, he don't has not been caused a constant problem.

  • I have a Dell computer that came with Windows XP Home edition. When I start my computer the monitoring of ERROR appears: RUNDLL error loading \3\DLBUtime.dll

    Error loading \3\DLBUtime.dll

    I have a Dell computer that came with Windows XP Home edition.  When I start my computer the monitoring of ERROR appears: RUNDLL error loading specified not found \3\DLBUtime.dll module

    I just click 'ok' and he goes, but, as for what it stop popping up everytime I start my computer.

    Can someone help me with this?

    Aprilm,

    You are LuLu5119, who posted a question last August?

    If this isn't the case, you should have started your own thread.  If so (and even if not), you should have responded to questions about Dell printers.

    Assuming that you complain of a "Error loading \3\DLBUtime.dll" message that appears when you start your computer, you should know that the DLBUtime.dll file probably has something to do with the software from Dell which has been partially deleted, but could also be indicative of malware as well as partially withdrawn.

    In both cases, the best way for start you to prevent the message at windows is to download Autoruns http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx

    Install the Autoruns and let it complete the scan of your computer.  Then click on the "Connection" tab and uncheck the following entry:

    Look for an entry that has 'DLBUCATS' in the first column.  If you do not see that, look for "rundll32 \3\dlbutime.dll" in the last column ("path of the Image).

    Uncheck that entry, close Autoruns and restart your computer.  You should get is no longer the message.

    If for any reason, you find later that you need dlbutime.dll running, run Autoruns and check the box. If you decide that you need never again, run Autoruns, right-click on the entry and select Delete.

    As General precautionary measure, in case your entry dlbutime.dll was related to malicious software, rather than the Dell printing software, download the following free scanners:

    MalwareBytes Anti-Malware: http://malwarebytes.org/
    SUPERAntiSpyware Portable: http://superantispyware.com/portablescanner.html

    For MalwareBytes Anti-Malware, download, install, update and run.
    For Portable SAS, follow the instructions on the Web page (note that the instructions assume that you use a different computer to download; if you're not, just make a note of the name of the file).

  • Error message - file inetppui32.dll is not a valid Windows image

    Just started happening after years of use. Each computer xxx.exe file or I try to load I get this error message "xxx.exe - bad Image of the application or DLL C:\WINDOWS\SYSTEM32\intppui32.dll is not a Windows image. valid Please check this against your installation diskette. »
    When I click OK the file loads normally. The problem is that I do that about 50 times when starting. That means "Please check this against your installation diskette"? How this is done? How dooes one to take to solve this problem? Thank you

    Hello

    Please tell us a little more about the system. What is the brand and model of the computer? Do you remember anything specific that past that you think could have triggered these errors?

    In addition, please tell us what you run antivirus software.

    For more information, take a look at this and see the answer marked as the JoseIbarra response.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-performance/error-the-application-or-DLL-is-not-a-valid/fa12c4dc-C175-4399-A0A9-f50aa085c901

    I hope this helps!

  • We get answerSTOP: c0000221 Unknown Hard Error\SystemRoot\System32\ntdll.dlls

    My Dell crashed.   When I try to restart, it will start not (in any mode): can't go in Safe Mode or last mode of work or other.   I managed to get to the blue screen and I saw the following: STOP: c0000221 Unknown Hard Error\SystemRoot\System32\ntdll.dll

    I did some research that says I can try to reinstall / Windows XP Recovery and that this could make it work
    I have all the original disks.
    Can I use the Microsoft XP disk and how can I reinstall without wiping my hard drive (I'm terrified by wiping my hard drive)
    The manual of Dell said to insert the Windows XP installation disk and I have the ability to REPAIR, not REINSTALL
    Will this work?
    Another site indicates that the problem is that the drivers are up to date...  I can't update because the PC is not connected to the internet
    Help, please

    Hi Niallmcardle,

    I suggest you follow steps from Microsoft Knowledge Base article and check if it helps.

    A Stop: 0xc000026C or Stop: 0xc0000221 "Unable to load device driver" error occurs when you start Windows XP

    http://support.Microsoft.com/kb/315241

    I hope this helps.

  • At the start of XP, make error rundll error loading \3\lxcctime.dll

    When windows load I get this error rundll error loading \3\lxcctime.dll. How can I fix it?

    OS: windows xp home edition. recently had a lot of viruses on the computer. mainly Trojan viruses

    When windows load I get this error rundll error loading \3\lxcctime.dll. How can I fix it?

    This error is related to your Lexmark printer.  The following procedure may solve this problem, although I've seen conflicting reports.

    Follow the instructions here to uninstall and reinstall the printer software: Article 1.  Between steps 4 and 5, perform the following steps (if you can not complete step 4, post back with this information):

    • Open a command prompt window (start > run > cmd > OK)
    • Type the following commands in the black command prompt window, pressing ENTER after each line.  Note that there is a space after the = not before

    net stop spooler
    dependent on the spooler of sc config = RPCSS
    net start spooler
    output

    To step 6, start here: http://support.lexmark.com/index?page=home&locale=EN&userlocale=EN_US&segment=DOWNLOAD

  • help with this error message (load needed DLLs for kernel)

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error message load needed DLLs for kernel in Windows XP
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hello

    ·         When you get this error message?

    Refer to the following articles:

    Error: load needed DLLs for kernel. : http://support.microsoft.com/kb/326671

    http://support.Microsoft.com/kb/812450

    Diana

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Error C:\windows\swmsmca.dll

    When starting my laptop I get this error code - error C:\windows\swmsmca.dll---j'ai ran all kinds of different things to try to fix this issue and it always keeps popping up. Anyone has any ideas on what to do?

    It is easy to get rid of the error message by doing something like disable the startup item in msconfig (if you can still find), but I suggest you fix the problem and difficulty not only the symptom of the problem simply remove the startup message.
    I would recommend also you start to search in the register, unless you have a backup because there is no 'Cancel' or 'quit without saving changes' option in regedit.  If you make a mistake, that's all.
    These ideas relieve 'rapid' and sometimes risky of the symptom, but may not actually solve the problem.  Also, I'd be suspicious of ideas that begin with the words "try."  You don't need to try things, you need to fix things.
    Here are the detailed instructions that protect you and solve your problem in the 'right' way.
    There is very little. DLL files that should be loaded from the C:\WINDOWS folder and is not one of them.
    Describe your current antivirus and software anti malware situation: McAfee, Norton, Spybot, AVG, Avira
    !, Defender, ZoneAlarm, PC Tools, MSE, Comodo, etc..
    A "Cannot find...". ', ' Failed to start..., "Could not load..." ». "Might not work... "" Cannot run ""error loading... ". "or"specific module could not be found"message at startup is usually related to the malware that has been configured to run at startup, but the referenced file has been removed after a malware scan, leaving behind him a startup item or the registry entry pointing to a file that does not exist.
    It might be a removal of malicious software or an application not installed.  The entry may have a curious looking name since it was probably generated at random when the malware was installed. If you search your system for the referenced file, you may not find.
    Windows attempts to load this file but cannot locate because the file has been deleted for most probably during an analysis of the malware. However, an orphaned associate of remainders of startup parameter or registry entry and tells Windows to load the file when you start or connection.
    So you should delete the referenced entry Windows stop trying to load or run the file. It may or may not be included in the registry, but you can find it.  Autoruns (see below) you get the elements no matter where it is.
    If you just locate and uncheck the item in msconfig, which disables the element but does not remove the reference to the element of false starting your computer.   The msconfig program is not a Startup Manager, that's a troubleshooting tool.  Disabling things in msconfig to put an end to the messages and think that your problem is solved is short-sighted and leave behind him a sloppy XP configuration.  Just disable the display of a start-up error message should not count as a 'solution' to the problem.
    If you are comfortable editing the registry, you can find and remove the reference directly from there or remove it using a popular third-party tool called Autoruns.  The problem can always be found in the registry well.
    Before making any changes to your registry by hand or with third-party tools, don't forget to first make a backup of the registry. There is no cancellation or exit without saving the option in regedit.
    Here is a link to a popular registry backup tool:
    You can use Autoruns to find the element of start remains little matter where he's hiding.  Autoruns does not install anything on your computer.  It will display all startup locations where the reference may be then you can turn it off or remove it completely.  Here is the download link for Autoruns:
    Run Autoruns.exe and wait that he at the end of the filling of the list of entries.
    When the Autoruns is finished scanning your system, it will say "Ready" in the lower left corner.  Autoruns can be a little intimidating to first if you have never seen it before because it displays a lot of information.  You are really interested only a few sections.
    The problem is usually to start the system or the user startup entries, then click the connection tab and see if the startup item is there.
    Scroll through the list and look for a boot entry associated files in the error message.
    If you can't find on the connection tab, look in any tab.
    Right-click on the offending entry and choose Remove.  If you are not sure what it is, you can simply disable, restart and if the problem is resolved and then remove the offending entry
    .  If you don't see it in Autoruns, you may edit the registry and remove the item from your startup folder it.  Autoruns shall display the same information however.
    Given that you had or have an infection, followed with this:
    Perform scans for malware, and then fix any problems:
    Download, install, update and do a full scan with these free malware detection programs:
    Malwarebytes (MMFA): http://malwarebytes.org/
    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/
    They can be uninstalled later if you wish.
    Restart your computer and solve the outstanding issues.

    Do not guess what the problem might be - understand and resolve it. I need YOUR voice and the points for helpful answers and propose responses. I'm saving for a pony! Do not guess what the problem might be - understand and resolve it. I need YOUR voice and the points for helpful answers and propose responses. I'm saving for a pony!

  • I get error loading \3\DLCXtime.dll

    When I start up I get error loading \3\DLCXtime.dll
    The specified module could not be found?

    How to solve this?

    Thank you
    Arthur H

    Hello

    DLCXtime.dll is part of your Dell printer drivers. You probably need to reinstall. Also contact Dell Support
    and their forums for known problems.

    Dell drivers
    http://support.Dell.com/support/index.aspx?c=us&l=en&s=DHS

    Dell support
    http://support.Dell.com/

    Dell forums
    http://en.community.Dell.com/forums/
    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • How resolve the error that reads "wmvcore2.dll's not found" after the installation of Cool Edit Pro 2.0?

    Hello

    I recently tried to install Cool Edit Pro 2.0 on my Dell laptop. After that it's over, I went to open the application, but the error which read "wmvcore2.dll is not found" message popped up. He suggested I have reinstall the application, so I did, but nothing helped.

    I wonder what I can do to solve this problem and can you give me any help will be greatly appreciated.

    Thank you.

    http://www.Microsoft.com/Windows/compatibility/Windows-Vista/default.aspx

    Windows Vista Compatibility Center

    First thing to do is to check its Vista compatibility at the link above, and if not to see what patches/solutions are available from its manufacturer...

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-compatibility-mode/

    If this is not Vista compatible, read the info on the link above.
    It works for some programs, but not all.

    This applies to software programs, NOT hardware drivers.

    If it's Vista compatible > uninstall it > Re-download/save to your desktop > right click on the setup.exe > run as admin.

    If the above does not help, try to repost in Forum Vista programs:

    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/threads

    See you soon.

    Mick Murphy - Microsoft partner

  • MSN - CRASH - TECH MSN TOLD - not able to use msn and I get a msg in the event viewer that the error is NTDLL. DLL

    MSN TECH SAID TELL WINDOWS CE PROBLEM I am STICK - not able to use msn and I get a msg in the event viewer that the error is NTDLL. DLL and talked with msn. Called MSN windows Dept. -How can I correct this situation?

    Hello

    Did you change your computer?

    Method 1:

    I suggest you perform the clean boot and check.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Note: After a repair, be sure to set the computer to start as usual as mentioned in step 7 in the above article.

    Method 2:

    I also suggest you to follow the link and check.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

  • Anyone know what the error windows\system32\urgRLfgh.dll? Or where to go to get a fix?

    error urgRLfgh.dll

    Anyone know what the error windows\system32\urgRLfgh.dll? Or where to go to get a fix?

    Thank you

    Andrea

    Hello

    1. Once you get this error message?

    2. did you of recent changes to the system before the show?

    Please provide more information on the issue to help you best.

    Suggestions for a question on the help forums

    http://support.Microsoft.com/kb/555375

    Meanwhile, I suggest you perform the methods mentioned below and check if it helps.

    Method 1:

    Follow the link below and check if the problem persists in safe mode.

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Method 2: perform a clean boot.

    To perform a clean boot and see if the problem still occurs, follow the steps in the below link.

    http://support.Microsoft.com/kb/929135

    Note: once you are done with the boot, follow step 7 in the link to your computer in normal mode.

    Method 3: perform a virus scan

    I suggest to download the Microsoft security since the link Scanner and performs a search on your system. Check if the problem persists.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: Microsoft safety scanner ends ten days after downloading. To re - run a scan with the latest definitions of anti-malware, download and run Microsoft Safety Scanner again.

    Let us know if it helps.

Maybe you are looking for