-
- Visual C#
by Mortsdeh
- 7211 Replies
- Mortsdeh Views
- Last post
-
using foreach to loop string[] and how to check for last index
- Hi,
I have a string[] which I loop using foreach:
foreach (string s in str)
{
}
I'd like to test using an if statement if s is the last index of the string[] and hopes that someone can help me with this. It is possible for the string[] to contain several similar strings.
Best
/M
-
- IE Development
by RainerJ
- 2881 Replies
- RainerJ Views
- Last post
-
integrate external search result in wds
- Hi,
perhaps this may be a really stupid question but i could not find anything about it through the search
The idea is that i have an external application which can't be indexed by WDS (because of the data size of >5-80GB). I have already implemented a search functionality in that application. The only thing i want is that whenever i search in WDS the resultset of the search from the third party application is displayed additionally (e.g. by calling a web service with the search parameters and returning a predefined XML document)
Is there any way to integrate the search result in WDS (and not indexing the content)
Thanks a lot.
-
- Windows Forms
by ClickOnce
- 12743 Replies
- ClickOnce Views
- Last post
-
clickonce and regfree com
- Hi
During a Packaging and Deployment proof of concept exercise I am encountering an issue with a ClickOnce/Reg-Free approach which I am unsure about. The application is compact in that it consists of simple GUI, Business Object and COM (VB6) components. The BO makes a call to the COM component which has the Isolated property set to true in the BO references. I built and published the GUI to IIS on my local workstation.
The installation on other workstations (XP and Vista) appears to work but when I run the application and call the function the following exception is raised "Creating an instance of the COM component with CLSID {6062F453-980D-406B-A7F5-3DD5A89F3C77}
from the IClassFactory failed due to the following error: 800a0005." Can anyone give me any pointers as to why this occurs Is it down to permissions The installation directory on the Vista workstation is local/apps ... and looks to contain all the required files and the user I am logging in as has administrator rights.
A second part of my experiment was to unreg the COM component on my own workstation and install the app. This worked fine and there were no issues with the COM component. I couldn't find where the app was installed though. Is there a standard location
Thanks in advance.
David
-
- Visual Studio
by Eli Cohen
- 16716 Replies
- Eli Cohen Views
- Last post
-
- Game Technologies
by Pontius
- 6072 Replies
- Pontius Views
- Last post
-
any new info on mdx for 64-bit
- I am in desperate need of MDX 9 for 64-bit development. Any word on the progress Someone mentioned that they were looking into it a while back.
-
- SharePoint Products
by TheFitzman
- 1888 Replies
- TheFitzman Views
- Last post
-
stsadm.exe searchadcustomquery
- Can someone help me with the syntax of the following command
Stsadm.exe -o setproperty –url http://server –pn "peoplepicker-searchadcustomquery" -pv
After the -pv I need to put the custom query but there is no documentation as to how it should be typed.
I am running this command to limit the scope that the people picker users when searching for users.
-
- Audio and Video
by ToddOs
- 1166 Replies
- ToddOs Views
- Last post
-
web gadget gallery submission failures
- Over the last several days, the only gadgets that have been approved on Gallery are Sidebar gadgets. If you look at the current 10 newest gadgets, all are for Sidebar. Over the weekend, I submitted updates to two of my web gadgets, both of which were rejected (since rejection lacks details I can not say for sure why, but both updates were rather trivial and well-tested before submission).
I have emailed Chris Butler directly about this, but since I haven't gotten a response yet (Chris may be out on vacation ) I decided I would go ahead and post this in the public gallery in case someone else who can investigate may see it here.
I re-submitted my gadget updates last night and they're still pending as of right now, so maybe whatever problem caused the previous rejection has been fixed and they'll get approved this time.
-
- Visual Basic
by John_Mac
- 8556 Replies
- John_Mac Views
- Last post
-
reading/writing arrays
- I have searched quite a bit on this without finding an answer, so maybe I am asking the wrong question....but here it is
Is there a simple way to write out an entire array (or portion) to file
As an example, define an array and initialize it:
Dim Test() as String = {"a","b","c"}
then write it to file:
File.WriteAllText("C:\Test.txt", Test)
Obviously this does not work for array Test, tried Test(), Test(0 To 2) etc, but all give errors.
Must be missing something.
-
- Microsoft ISV
by mikebrant
- 1294 Replies
- mikebrant Views
- Last post
-
need help getting filepath information via file dialog
- I am wondeirng if there is a way to have the file dialog box (or something similar) return a URL value from the selected file. Basically the issue I am having is that I am trying to add hypertext links to files stored on a shared network drive into an access table. Currently, using a pretty basic file dialog approach, the hyperlink text will be based on the file path as defined for each user. In other words, if the user has the network drive mapped as the G drive, the hypertext value returned is "G:\\..." or if the user does not have the drive mapped at all, the network-assigned URL for the drive is returned (i.e. \\DriveName\...). The latter (the user-independent URL) is actually what I desire to have returned as the value, so as to make the hyperlink viable regardless of who the user is. The code I am currently using is (where the Call function references a module that uploads data from the specified file and writes the FileName data, the file path, to the destination table):
Private Sub FileBrowser_Click()
' This requires a reference to the Microsoft Office 11.0 Object Library.
Dim fDialog As Office.FileDialog
Dim vrtselecteditem As Variant
' Clear the list box contents.
DoCmd.SetWarnings False
DoCmd.OpenQuery ("ClearTempFields")
DoCmd.SetWarnings True
Me.FileName.SetFocus
Me.FileName = ""
' Turn Warnings Off
DoCmd.SetWarnings False
' Set up the File dialog box.
Set fDialog = Application.FileDialog(msoFileDialogFilePicker)
With fDialog
' Allow the user to make multiple selections in the dialog box.
.AllowMultiSelect = True
' Set the title of the dialog box.
.Title = "Select Files to be Uploaded"
' Clear out the current filters, and then add your own.
.Filters.Clear
.Filters.Add "Excel Spreadsheets", "*.XLS"
' Show the dialog box. If the .Show method returns True, the
' user picked at least one file. If the .Show method returns
' False, the user clicked Cancel.
If .Show = True Then
' Loop through each file that is selected and then add it to the list box.
For Each vrtselecteditem In .SelectedItems
Me.FileName.SetFocus
Me.FileName.Text = vrtselecteditem
Me.Requery
Me.Repaint
Call BatchTechReviewUpload(vrtselecteditem)
Next vrtselecteditem
Else
MsgBox "You clicked Cancel in the file dialog box."
DoCmd.SetWarnings True
Exit Sub
End If
End With
MsgBox "All files have been uploaded."
DoCmd.Close acForm, "BatchUploadFileBrowserForm"
DoCmd.SetWarnings False
DoCmd.OpenQuery "ClearTempFields"
DoCmd.SetWarnings True
End Sub
-
- Visual FoxPro
by boldeagle
- 793 Replies
- boldeagle Views
- Last post
-
vc+vfp+ado+filter
- why "filter "attribute not support wildcard "%" in the front,but it is ok for those not prefix with"%":
str.Replace(' ','_!');
str.Insert(0,'%');
sqlStr.Format("comment like '%s'",str);
m_pRecordset->Filter=(_bstr_t)sqlStr;
-
- Smart Devicet
by psravikanth
- 7432 Replies
- psravikanth Views
- Last post
-
capturing incoming call number and rejecting
- Hi,
I am creating application for PPC 2003 and Windows Mobile 5 using VB.Net CF
In my application i need to listen incoming call, capture incoming call number and rejecting incomming call.
Can you pl help me on this.
Thanks
Ravi Kanth
-
- .NET Development
by Gope
- 13098 Replies
- Gope Views
- Last post
-
sending objects via sslstream or negotiatestream
- Hello everybody,
I am having a problem with authenticated streams and hopefully one of you can point me into the right direction. I'd like to send an object (a filled dataset, as it can be fastly loaded for performance testing... ;o) ) via an authenticated stream. I managed to send it without authentication within a NetworkStream and I go the samples for Negotiate and Ssl streams to work (Thanks to Mike, Durgaprasa, and the rest of your team).
But unfortunately the samples are only sending simple ASCII strings. As soon as I switch to my DataSet I am getting stuck with some problems. As serializing into a Networkstream did not work (any ideas why ) I serialized it into a MemoryStream and copied the bytes afterwards into the NegotiateStream. On the Client I try to read it, what actually works, but I am not sure on how to deserialze it. Right now, I am reading the NegotioateStream in 1024 byte chunks and write these into a new MemoryStream which I wanted to use for the deserializing, but the byte count is somehow different to the serverside object. And all in all this seems odd to me... all this copying around.
I am sure you guys know a much better approach. Any help would be greatly appreciated. Just as a summary: I'd like to send a DataSet from the server to the client via a Negotiate (or SSL) Stream...
Thanks in advance
Gope
-
- Windows Vista
by John.Doe
- 6718 Replies
- John.Doe Views
- Last post
-
webservice - correlation - persistance
- Hi,
I started playing with the WWF now, to see what one can do with it. I am targeting a stupid scenario as a test case.
Let's say a story teller service with 3 words:
I implemented an interface IStory with 2 functions:
string StartStory(int id, string word);
string ContinueStory(int id, string word);
the CorrelationParameter is "id", StartStory is the CorrelationInitializer.
I also implemented a small class:
public class Story
{ int id; string text;
public int Id { get { return this.id; } set { this.id = value; } }
public string Text { get { return this.text; } set { this.text = value; } }
}
In the workflow I have a private variable of type Story named story with a public Property Story and a private variable of type string named word with a public Property Word.
The Workflow itself looks like this:
1. WebServiceReceive(interface="IStory", method="StartStory", activate=true, (Parameter)[id="Workflow1" path="Story.Id"], (Parameter)[word="Workflow1 path="Word"])
2. Code: this.Story.Text += this.Word;
3. WebServiceRespond(interface="IStory", receive="*see above*", (ReturnValue)[id="Workflow1" path="Story.Text"])
4. WebServiceReceive(interface="IStory", method="ContinueStory", (Parameter)[id="Workflow1" path="Story.Id"], (Parameter)[word="Workflow1 path="Word"])
5. Code: this.Story.Text += this.Word;
6. WebServiceRespond(interface="IStory", receive="*see above*", (ReturnValue)[id="Workflow1" path="Story.Text"])
Now I public this Workflow as a webservice and host it in my local IIS.
If I call the two workflows with parameters like this:
1. 1, "abc"
2. 1, "def"
I get the expected result. But I can also call:
1. 1, "abc"
2. 2, "def"
Which works, too, so it does totally not care about correlation. I'd have expected something like a no correlated workflow found exception here. But I have to admit, after looking through the correlation example, where a CorrelationReference is set on the activities - a property I do not even see on the activities in this workflow - this should have been an expected result.
Q1.: What do I do wrong here
Q2.: After calling the second web service successfully, I cannot call the first one again to start a new flow, the exception is: WorkflowNotFound. If I close the Internet Explorer Window and open a new one to call the workflow again, it works.
Why is that
Q3.: Related: I cannot call the first webservice twice, too, to start to parallel workflows. The operation times out
Obviously I am pretty much at the beginning understanding the WWF and I happy if somebody can point me into the right direction to achieve a scenario where a webservice is correlated via parameters like above and persisted for long running workflows.
Just what I think happens above, maybe I am even right with my guesses:
The WebService calls are not correlated by my explicitly set parameter, but by some kind of client setting like a session ID. Because this is used as a correlation I cannot start 2 parallel workflows with concurring correlations and to Q1 this works then obviously because my session ID as a correlation would of course work here to continue after the first call.
But what would I have to do have a custom correlation in a webservice
Add an own SubscriptionService to find the right WebService to use
Or add an own PersistenceService with an own correlation value calculated from the correlation set
Or... what
Any hints and suggestions are welcome!
-
- Visual C++
by Alexxey
- 5780 Replies
- Alexxey Views
- Last post
-
textout() and lpcwstr
- in win32 project i have a code:
char buffer[80];
static int wm_paint_count=0;
.
.
.
case WM_PAINT:
hdc = BeginPaint(hWnd, &ps);
SetTextColor(hdc, RGB(0,0,255));
SetBkColor(hdc, RGB(0,0,0));
SetBkMode(hdc, OPAQUE);
sprintf(buffer, "WM_PAINT called %d times. ", ++wm_paint_count);
TextOut(hdc, 0,0, (LPCWSTR)buffer, strlen(buffer));
EndPaint(hWnd, &ps);
break;
When i run this program there is no normal text... I see hieroglyphs, not letters and digits... What i must to do that TextOut work correctly
-
- VS Team System
by GriddleGuide
- 15574 Replies
- GriddleGuide Views
- Last post
-
burned express editions won't install from cd
- Hi, my name is Nick, and I am studying C# and Visual Basic at university.
Naturally I required the Express editions of visual studio 2005 in order to run the programs I am learning. I downloaded the files through the academic link as demonstrated, and then of course one is immediately forced into burning the images onto CD roms (I had Nero installed).
Unfortunately then the disk won't autorun. I am using Windows XP and IE. When I clicked on the setup.exe file on the CD, it did nothing but sit there, as I could see when I checked task manager. When I clicked on it again, I received a message saying that I couldn't run 2 instances at the same time.
When I clicked on autorun on the CD, nothing happened either. More interestingly, when I tried to run the Ixpvcs installer application, I eventually received error 1304, can not write to MS VSDesigner.dll, and on retry error 2350, unexpected. I was also told that the windows installer service wasn't working properly due to either windows running in safe mode or no access to it-not properly installed, even when I downloaded Windows Installer 3.1.
Has anybody any ideas what's going on I am a poor student crying tears and I am on the verge of destroying my girlfriend's teddy bear.
Cheers
Nicholas Rice