|
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
|
|
|
|
|
What it mean by:
An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll
|
|
|
|
|
An exception was thrown, in this case a System.StackOverflowException and the code did not catch it.
This particular exception is often caused by a recursive algorithms that has gotten out of control.
|
|
|
|
|
Oh I see...
It happen when I did a certain amount of 'Click' on any button.
So, My I know how to solve this problem?
|
|
|
|
|
crazyteh wrote: My I know how to solve this problem?
May I see the code so I know what the problem is?
|
|
|
|
|
I don't know which form/part got problem, so difficult to post all the code here...
Do u know what is the coding for generating report in VB.Net with Smart Device PDA? May be can generate pdf file or html file.
Thanks for your advice.
|
|
|
|
|
hi to all..
i'm very new with this program and totally bad with it..hope anyone can send me the basic code for bank-costumer services...send to me as soon as possible...thanks for the help...
+muchalucha+
|
|
|
|
|
That's not going to happen, for three reasons.
1. This is the VB group, not the C++ group.
2. You are supposed to do your homework yourself.
3. You haven't specified enough information for anyone to help you in any way.
---
single minded; short sighted; long gone;
|
|
|
|
|
muchalucha wrote: i'm very new with this program and totally bad with it..
I don't understand why so many people post here instead of talking to their teacher. If I could decipher your request, and if I spent my time writing your homework, what would you do when the next assignment tries to build on the knowledge you didn't bother to aquire this time around ?
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 see you too have noticed the surge in these type of "questions". Now this is truely a WTF!
"Please, I suck as a developer and I need you to save my ass!"
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi
i need to make a program to work with other languages and i must create resource.resx which will keep all the messages and strings
please help
thank you
|
|
|
|
|
Hi!
You should enter those strings in resources section of the project. When you define it all, you will be able to use each resource in your resource file. See the example below: Don not forget that you can't modify any resource in runtime. You can only read the resources from a resource file. Lets asume that you have entered a string in your resource file and named it as EnglishMessage
Msgbox(my.resources.EnglishMessage) ' this is a string type resources
I hope that helps!
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|