Click here to Skip to main content
15,918,193 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a .NET project that includes a VB6 OCX. The OCX recently had a new function added. In my code I stripped out all old references to the OCX and added the new copy, as well as a line of code that utilized the new function:

EPS.Refresh_IO_Link(App("EPSPort"), App("EPSPortSettings"))


Refresh_IO_Link shows up in Intellisense; the application compiles just fine; when I attempt to run the built EXE directly from the Release folder, it runs fine.

However when I try to run it through Debug, Refresh_IO_Link gets a blue squiggly under it, and I get the error:

'Refresh_IO_Link' is not a member of 'AxEPSIO.AxctlEPSIO'.


If I try to compile it again, the error goes away, and everything runs fine as before. It's just when I try to debug that I get the problem.

I know that I could technically roll the updated executable out now, but I'm concerned about later on when I try to make code changes and find myself unable to run it in debug mode due to this weird problem.

What is a good way to get around this issue?

Thanks in advance.
Posted

1 solution

Double-check your references, including your build/output/debug directories.

Do a Build -> Clean Solution, Build -> Rebuild All.

Does that fix it?
 
Share this answer
 
Comments
donquixote235 8-Aug-11 11:58am    
I checked the references, then did the Build>Clean, Build>Rebuild All. That appears to have done the trick. Thank you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900