|
|
hi everyone
i'm trying to run one of the microsoft samples under the category service behaviors --> security. i did the basic configuration for the samples, but this one needs further settings and i have no idea how it can be done. below is the link to the sample description:
http://msdn.microsoft.com/en-us/library/aa354509(VS.85).aspx
i need step by step details on whatever i should do to get it to run, i really appreciate your answers.
--- Thanks
|
|
|
|
|
Hi,
did you pay attention to all of the settings described in the sample? Do you get an error message when you try to run the sample? What is the error message saying?
Regards
Sebastian
|
|
|
|
|
i did, the problem is i don't get what i should do with the setup.bat file and i need more detail guide. it throws the following exception in console window:
Exception: the requested service , 'http://localhost/servicemodelsample/service.svc' could not be activated.
--- Thanks
|
|
|
|
|
Since the sample has something to do with security I assume it is a security issue. Have a look to the Windows Event Viewer, there should be an exact description of the error. Post this error here, so that we can have a look at.
Found here:
http://msdn.microsoft.com/en-us/library/aa395204.aspx[^]
|
|
|
|
|
Hello. Did anyone try to change his mac address,and achieve it? I can change it by using network adapter properties. And when looking its value with ipconfig/all command, it shows the value that i changed. But in this case it dosent connect any wireless networks. Later i learned that some registry keys are hold by windows. that is to say it was not enough to change the value from properties screen, also should have been changed registry. I found a program written with c++ but it didnt work again. Now, did anyone use that kind of program or write in c#. Or is it impossible?
|
|
|
|
|
possible[^]
I dont think there will be any problems developing that kind of application
|
|
|
|
|
i couldnt find any solution. i think this impossible because of being related with hardware
|
|
|
|
|
char[] delimiters = { ',', '#', ';', ' ', '/', '\0', '&', '-' };
strTemp = a[i].Split(delimiters, StringSplitOptions.RemoveEmptyEntries);
#69;xx street;yy city(input)
given the above input, it should split based on the delimiter... the above code removes the delimiter...but the delimiters should be retained...
is there any method to do this...
thanks in advance
the quieter u become more u hear
|
|
|
|
|
You could go through the result, appending the delimiter. Of course, you'd have to use the delimiters one by one.
Or write your own method. Regex may work as well, not totally sure.
Cheers,
Vıkram.
I've never ever worked anywhere where there has not been someone who given the choice I would not work with again. It's a job, you do your work, put up with the people you don't like, accept there are probably people there that don't like you a lot, and look forward to the weekends.
- Josh Gray.
|
|
|
|
|
bool chkspchar = Regex.IsMatch(txtBrandName.Text, "[^A-Za-z0-9-]+");
if(!chkspchar)
{
strBrandName = Regex.Replace(txtBrandName.Text, "[^A-Za-z0-9-]+", "").Trim().ToLower();
}
|
|
|
|
|
hi,
I have installed Modem. Kindly let me know / give me any little script for reading CLI number of any incoming call.
Thank you
(Riaz)
|
|
|
|
|
Hi there,
I was wonder if it is possible to send data from the computer to the mobile via C# program that make a Bluetooth connection to that mobile
in other word the computer (my application run on the computer), scan from enabled blue tooth devices then send to one of the device msg, and the the mobile can send back another msg,
if that is possible could the application on the mobile be in different language such java 2ME while the application running on the computer be C#,
please, if you just can give me a hint so I can start right , or some links that can help
thanks
|
|
|
|
|
I don't believe any bluetooth library exists in .NET, so you'd need to buy one.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
I have a DataGridView with many DataGridViewTextBoxColumn(s). As soon as the value is changed within the cell I want to send it to my object--not once the cell loses focus--how can I do this? I tried to cast it to a textbox and created an event handler for TextBox's TextChanged event but the problem is I need the column and row info which you normally access through e.ColumnIndex and e.RowIndex of CellEndEdit and other events. Any ideas?
One thing I can do is on CellEnter I can grab the column number and row number and save it in a variable and use it later but is there an alternative? I need realtime event like the textbox's TextChanged event.
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
So, if I type in 'this is a stupid idea', you want to send 21 change messages ? Do you want to save you data 21 times ?
I would imagine the way to do this, is to set the Tag of the Textbox to contain the column and row, so you can parse it from there.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I actually did it by saving the column number and the row number at CellEnter.
Christian Graus wrote: So, if I type in 'this is a stupid idea', you want to send 21 change messages ?
Yes.
Christian Graus wrote: Do you want to save you data 21 times ?
No, just probe the object 21 times. For example,
private void textBox_TextChanged(Object sender, EventArgs e)
{
this.customer.Name = this.textBox.Text;
}
where customer is the object is I am probing.
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
If you don't want to send 21 times message then you should think about how to catch your changes. One possibility is On leave event but you don't want do that. I think you should use on leave cell event.
|
|
|
|
|
Hi,
I have already read some guideline for naming, but I want to know how to naming a namespace if the project is custom for other company?
Normally, the guideline prefer the following practice:
CompanyName.TechnologyName[.Feature][.Design]
But if I am working on CompanyA and its product is ProductA, I need to customize for CompanyB, which one is prefer?
CompanyB.ProductA or
CompanyA.ProductA.CompanyB or
any suggestion?
Thanks.
|
|
|
|
|
Whatever you like, I mean, it;s all going to work, right ?
I can't imagine that companyB wants to see CompanyA in their project tho.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
but if CompanyA is software house, CompanyB is the client and will not see that namespace, is it a good practice to keep CompanyB in the namespace to indicate the customized project is for CompanyB?
|
|
|
|
|
Hi, i have a small problem i have a csharp dll built in VS2005.I have to access the functions from this dll in my VC++ project done in VC 6.0.My VC project is not able to identify my C# namespace and class.I dont get what the problem is. Please do have a look at my c# code and VC Project code and do let me know if im making some mistake.I have also pasted the errors that i am getting. please do help me...i'm not able to understand the problem.
C# code:
using System;
using System.Collections.Generic;
using System.Text;
namespace TestDllCsharp
{
public class Class1
{
public void PrintMessage ()
{
System.Windows.Forms.MessageBox.Show("Test");
}
}
}
VC Project :
#import "TestDllCsharp.tlb"
using namespace TestDllCsharp;
#include <stdio.h>
void main()
{
HRESULT hresult;
CLSID clsid;
CoInitialize(NULL);
hresult=CLSIDFromProgID(OLESTR("TestDllCsharp.Class1"),&clsid);
if (hresult == 0)
{
_Class1 *t;
hresult=CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,__uuidof(_Class1),(LPVOID *) &t);
t->PrintMessage ();
CoUninitialize();
}
}
I get errors like :
error C2065: '_Class1' : undeclared identifier
error C2065: 't' : undeclared identifier
Thnx in advance.
|
|
|
|
|
I assume the tlb means you've created a COM dll. Have you tried specifying the GUID directly, instead of using the smart pointer stuff ? Also, why are you sure the class name gets a _ put in front of it in VC ?
You'd do better to upgrade to a less crap version of C++, and then you can just use managed C++ as your bridge.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
My project requirement is that i have to use VC 6.0
Is there a way to solve this problem?I just dont undertsand why the code isn't able to identify my classes.Is there a problem with my tlb file generation.Please do tell me if there is a solution to this ?
Thnk you ...
|
|
|
|