|
Thats exactly what I did, and it complained about not finding
the entry point in the DLL. The example I had was "USBComunication",
it said that it could not locate the entry point in the DLL
|
|
|
|
|
OK, perhaps the DLL doesn't expose the entry point. To build a DLL with entry points, you need a seperate text file that defines them.
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 )
|
|
|
|
|
I'm developing a application that consumes a webservice on my local
machine. The problem is that when I call the method of webservice I instantly get a WebException with no further information. The method can be called from IE. How can I find out the reason and solution for the exception?
Shashank Nema
|
|
|
|
|
I assume the web service doesn't require you to log on ? The odds are, it's a problem with your code that's connecting, or your connection.
Have you checked the InnerException ?
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 )
|
|
|
|
|
Exception.InnerException object is Nothing and webservice is using windows authentication.
|
|
|
|
|
Do you have any access to the webservice ? What happens if you step into the code to see what line of the generated code is blowing up ?
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 )
|
|
|
|
|
I have access to webservice and it is embedded into my application however when I debug I am unable to hit webservice. It trhows me error before going to web service.
|
|
|
|
|
Then it's a connection issue. Firewall ?
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 )
|
|
|
|
|
No firewall everything is on same local machine.....
|
|
|
|
|
What line of code blows up ? Is the webservice published and IIS running ?
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 )
|
|
|
|
|
Line of code is:
NotificationObject.ProcessRatingStatus(AppId, ObjProgressionEnum, ObjProcessStatusEnum, Message, RunLength, UserId)
ProcessRatingStatus is the function in Webservice which I want to call from my application. Also webservice and my application are both authenticated through windows authentication.
|
|
|
|
|
OK, so it is indeed the webservice call that fails, you said it was before. Attach a debugger to the aspnet process, with the webservice project open, run the app, and see if a breakpoint at the start of this function will trigger.
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 )
|
|
|
|
|
Breakpoint at the start of function does not trigger.
|
|
|
|
|
hi
i wrote a code which opens a resource.resx of a project but i want to find the word "str" in this resource with regex but i have errors.
maybe you can help me.
here is the code:
Dim rm As Resources.ResXResourceReader = New Resources.ResXResourceReader("C:\Documents and Settings\Developer1\Desktop\Developer2\Admin32 .NET.adela\My Project\Resources.resx")
Dim en As IDictionaryEnumerator = rm.GetEnumerator()
Dim regex1 As System.Text.RegularExpressions.Regex = New System.Text.RegularExpressions.Regex(en)
Dim m As System.Text.RegularExpressions.Match
Dim word1 As String
Dim word2 As String
Dim text As String = "str"
While (en.MoveNext())
word1 = "Value:" + en.Value.ToString()
word2 = "Key: " + en.Key.ToString()
rm.Close()
m = regex1.Match(text)
End While
the eerror:"Unable to cast object of type 'N" to type 'Double' is not valid.
thank you
|
|
|
|
|
That's a weird error, there is no 'N' here that I can see. What line blows up ?
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 )
|
|
|
|
|
We have established the need for IDisposable and when to use it etc...
My question now pertains to a small Windows App. If I were to utilize a dataset for a DataGridView, an ErrorProvider, or something else that has a Dispose method, do I need to then implement the IDisposable class interface or will all of those things be cleaned up when the App exits?
-- modified at 9:50 Friday 23rd March, 2007
CleaKO
"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy) "Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)
|
|
|
|
|
CleaKO wrote: the IDisposable class
There is no such thing. IDisposable is an interface.
You need to impliment IDisposable when you're writing a class which has members which themselves need to be disposed of, either managed stuff with IDisposable, or things like handles to database connections.
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 )
|
|
|
|
|
hi i have a little question this code give me runtime error 91
object variable or with block variable not set.
with this codes i wanna search for \ and if found i wanna delete entire row.
and loop until no more \ in the excel sheet.
any ideas for that error?
Sub satirsil()
Do
Cells.Find(What:="\", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate
Rows("7:7").Select
Selection.Delete Shift:=xlUp
Selection.Find(What:="\", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
Selection.Delete Shift:=xlUp
Selection.FindNext(After:=ActiveCell).Activate
Selection.Delete Shift:=xlUp
Loop Until IsEmpty(ActiveCell.Offset(0, 1))
End Sub
|
|
|
|
|
i found now this code and it works
Sub DeleteRows()
Dim rngeFound As Range, rngeSearchRange As Range
Set rngeSearchRange = ActiveSheet.Range("A1:A700")
Do
Set rngeFound = rngeSearchRange.Find("TIMING")
On Error Resume Next
If rngeFound.Rows.Count = 0 Then Exit Sub
On Error GoTo 0
rngeFound.Resize(6, 1).EntireRow.Delete
Loop
End Sub
|
|
|
|
|
I have a problem in my desktop application. I am using VS.NET 1.1. I am using Word template to display the data. I have already include the reference of Interop.Word.dll, AxInterop.MSMask.dll, Interop.VBIDE.dll, Interop.Microsoft.Office.Core.dll, Interop.MSMask.dll in our application.
When I click on the option it throw the following error:
System.NullReferenceException: Object reference not set to an instance of an object.
at Word.Documents.Open(Object& FileName, Object& ConfirmConversions, Object& ReadOnly, Object& AddToRecentFiles, Object& PasswordDocument, Object& PasswordTemplate, Object& Revert, Object& WritePasswordDocument, Object& WritePasswordTemplate, Object& Format, Object& Encoding, Object& Visible, Object& OpenAndRepair, Object& DocumentDirection, Object& NoEncodingDialog, Object& XMLTransform)
at iMSW.frmMain.openTemplateFile(String fileName) in D:\Project\Astin\iMSW_Prj\Forms\frmMain.vb:line 1257
This error is occur when user is using the MSOFFICE 2000. But if user is using the MSOFFICE 2003 it’s working fine.
Please help me.
OTAsh
|
|
|
|
|
I bet the reference you have set points to Office 2003 and not Office 2000.
Try including a reference to Microsoft Word 9.0
let me know if this helps.
VB Prog
|
|
|
|
|
Hi!
What is the easiest way to reset the values of array. For instance I have an array "Dim Books(1000) as string
Thanks
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
I think this will work:
<br />
Dim Books(1000) As String<br />
<br />
'Add a few values<br />
Books.SetValue("test 1", 0)<br />
Books.SetValue("test 2", 1)<br />
<br />
'Remove values<br />
Array.Clear(Books, 0, Books.Length)<br />
|
|
|
|
|
You want to clear them all ? Defining a new array might be the quickest way. Then they will all be null. I'm not sure if you have any other options besides foreach.
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 )
|
|
|
|
|
Does Redim Array helps in any way
Develop2Program & Program2Develop
|
|
|
|