|
Hello,
I made an application that automates SolidWorks 2006. I added references in my project to 2 type libraries from the SolidWorks 2006 folder.
The problem is the application only with 2006 version of SolidWorks; it does not work in 2004 or 2007. Is there a way to make the application independent of type library version?
I already tried late binding by removing the references to SolidWorks and using Objects type variables, but this gives me a run time error when trying to open a document:
Bad variable type. (Exception from HRESULT: 0x80020008 (DISP_E_BADVARTYPE))
-- modified at 14:07 Wednesday 6th June, 2007
|
|
|
|
|
There's no way to do version indendance if you use a reference to a COM object. The version number is part of the binding.
You might be able to do this with some type of proxy, or wrapper class, though. See this[^] for a description.
|
|
|
|
|
Hi All,
I created a new project and from the get go the default telli sense was turned off and it wouldn't show all project and other issues occured. I eventually got most of them down and I added a forgot username a password form to my project, however after developing the design of it when i go to double click on one of the command buttons on the page for example btnSumbit it won't open the code behind page.
When I did set this up i called the page ucForgot.aspx and the code behind file is called ucForgot.aspx.vb but the code with in it is follows
Partial Class includes_uc_security_ucForgot
Inherits System.Web.UI.UserControl
I did change the class name but that should cause the problem write?
Any ideas?
|
|
|
|
|
This question belongs in the ASP.NET Forum.
But, if you changed the class name in this file, then yes, you've caused a problem. A Partial class is a class that spans multiple files. If you change the name specified in the Partial Class line in one file, you MUST change it in the others that make up the rest of the class. Also, ANY references to this class name in ANY other files must also be changed to use the new name. A search and replace would probably be in order here.
|
|
|
|
|
Sorry Dave I taught I was in the write section.
I think I have changed all references to it. So here it is as follows:
ucForgot.ascx
<%@ Page AutoEventWireup="false" Codebehind="ucForgot.ascx.vb" Inherits="includes_uc_security_ucForgot" Language="vb" %>
Then in the ucForgot.ascx.vb
Partial Class includes_uc_security_ucForgot
Inherits System.Web.UI.UserControl
This is still not working, and out side of this all pages are blank except for a command button on the ucForgot.ascx page to try and get this working.
Then for some reason there is this other file called ucForgot.ascx.designer.vb that i have never used before or don't know what it is for. But it has the correct name and any time i change the name it changes as well automatically.
|
|
|
|
|
I have no idea. ASP.NET is something I haven't touched in 4 years. I'm going by my experience with Partial classes.
|
|
|
|
|
Hi Dave,
Sorry for the inconvience, I decided to recreate everything and no rename the classes, I will someone else worry about that if they really want it a different name to the design.
Thanks again
|
|
|
|
|
That's the easiest way to do it, I guess!
|
|
|
|
|
hello frnds,
how can i send a message to other computer in a same LAN
using vb.net
can i use IP address ???
the messagebox should be displayed on desired computer..
any code ???? Please help...
thankx in advance and regards,
koolprasad2003
If the answer is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
If you just want a simple messagebox displayed, you may type the following in command prompt, (or run command prompt with the following as argument
net send IP Message
this will display the Massage in IP computer if this access is not restricted in your domain.
If you want to do that by your own program, you should use client/server applications which should run on both computers.
|
|
|
|
|
Thankx a lot,
but i wamt to do it from my program,
if called "shell" from my program n run it
does server knows that, i send the message to BLABLA computer????
thankx and regards,
koolprasad2003
If the it is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Google for "VB.NET chat" and you'll find thousands of examples of the ubiquitous newbie project.
Seriously though. From your previous posts, this is beyond your current skill level. I suggest learning the basics of VB.NET and the .NET Framework before attempting to tackle a client/server app.
|
|
|
|
|
Is there any equivalent available of "GetShortPathName" API in VB.NET?
----------------------------
**** JOB23743 Submitted ****
|
|
|
|
|
You can call any windows API using p/invoke. Look it up at www.pinvoke.net[^]
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Like Christian said, call the function using P/Invoke, because there is no equivelent in the System.Io namespace in the .NET Framework.
|
|
|
|
|
Hi All!
I am getting this exception when trying to get call a dll method.
the application runs fine when i try to run the threads one at a time but, this exception comes up when i try to run them at the same time.
Exception in thread "Thread-1" java.lang.ArrayIndexOutOfBoundsException
at JOpt.SDK.Implementation.CapacityResource.getWorkingHours(CapacityReso
urce.java:683)
at JOpt.SDK.Implementation.CapacityResource.getCurrentWorkingHours(Capac
ityResource.java:535)
at JOpt.SDK.Core.Population.fitness(Population.java:492)
at JOpt.SDK.Core.Population.createNextGeneration(Population.java:313)
at JOpt.SDK.Implementation.Optimization.run(Optimization.java:218)
at java.lang.VMThread.run(VMThread.java:51)
at java.lang.VMThread$1.Invoke(VMThread.java:301)
at cli.System.Threading.ThreadHelper.ThreadStart_Context(Unknown Source)
at cli.System.Threading.ExecutionContext.Run(Unknown Source)
at cli.System.Threading.ThreadHelper.ThreadStart(Unknown Source)
Regards
|
|
|
|
|
Well, somewhere in your code, it looks like you tried to access an array using an index value outside the bounds of the array.
With the lack of detail you've supplied in your question and not code sample where the error occurs, this is about the most anyone can tell you.
Oh, this looks like an ASP.NET app or something that was NOT written in VB.NET. True?
|
|
|
|
|
Thanks A lot!
Its and vb.net application..
Cant tell u the code since its coming(exception) out of dll.
I am using IKVM.GNU.Classpath.dll it seems its coming from there but cant figureout what to do......
Regards
|
|
|
|
|
Neither can I. I've never used, nor even heard of, that library.
Your best source of information is going to be the site that deals with that library specifically. But, I don't see a support forum on http://www.ikvm.net/[^]. Actually, I don't see much in the way of a support forum at all for it. About the best you're going to do is to post something on it's SourceForge page, here[^].
|
|
|
|
|
Thanks for the reply
I have done that already
Thanks Anyways for the reply
Regards
|
|
|
|
|
I see you've discovered the wonders, and pitfalls, of "open source"...
|
|
|
|
|
Hey
Is it possible in VBA and Outlook 2003 to determine whether the mail being viewed in the current window (user has double clicked mail to view it or clicked on New) is incoming or is outgoing?
At the moment I can get the folder that the activeExplorer is looking at and so can determine if a message is in the inbox.
However when the NewInspector event is fired and a window pops up with either incoming mail or an editor to create new mail is there a way to determine which is which programmaticaly?
Thanks
Dan
|
|
|
|
|
Hey
In the end did a bit of a bodge but it works - for any one with a similar problem all I do is compare the senderName - if there is one it is received and if there isnt one then I am creating a new message
Hope this helps some one
Oh and if any one has a better/more foolproof way could they please let me know
Thanks
Dan
|
|
|
|
|
Hi!
I have a problem, I have a vb 2005 application and SQL Server 2000 database. Data from vb forms are transferred to SQL tables. However, I need to protect my data. To prevent other unauthorized users from viewing it anyhow. Thus, I do not know, whether I should encrypt the data through cryptography classes in vb 2005 and then decrypt it when I want to display data in datagrids. Or there are some other ways to encrypt it through SQL server components?
Could you please suggest me what will be the right way of protecting my data?
Thanks beforehand.
|
|
|
|
|
The main way to protect your data, is to write a secure database and make sure that only specific users have access to it, and password protect those accounts.
You can also encrypt the data if you want to, and if performance is not a concern.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|