15,885,985 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Sampath Sridhar (Top 9 by date)
Sampath Sridhar
5-Oct-13 2:22am
View
Yes, I have registered the TLB from local system drive and it worked fine.
Here is a part of the COM interface. All namespaces and classes not mentioned here.
In the below code, RecordUserService is exposed to VB6 through the interface.
// COM Interface specification
[Guid("D6F88E95-8A27-4ae6-B6DE-0542A0FC7039")]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
public interface RecordUser
{
[DispId=1]
string callService(int userId);
[DispId=2]
string DBConfigPath;
}
[Guid("13FE32AD-4BF8-495f-AB4D-6C61BD463EA4")]
[ClassInterface(ClassInterfaceType.None)]
public class RecordUserService: RecordUser
{
public RecordUserService() {}
public string callService(int userId)
{
// Create WCF service client and invoke webservice method.
// Return "Success" if service is executed fine and "Error" in case of errors.
}
public string DBConfigPath
{
get
{
// Get private variable for db connection
}
set
{
// Set private variable for db connection
}
}
// Private methods internal to the middleware interface
private void initRequest()
{
// Initialize Web service request
}
private void sendRequest()
{
// Invoke web method and get back the response
}
}
Sampath Sridhar
18-Mar-13 1:58am
View
Got the answer.
Its available here:
Cloud Programming Concepts
Sampath Sridhar
18-Mar-13 1:38am
View
Ok good. That will also work.
Sampath Sridhar
18-Mar-13 1:05am
View
Yes. clsBusinessLayer might be missing or it could have been incluided in another project in the solution itself.
Please add reference to it and check.
Sampath Sridhar
11-Mar-13 23:36pm
View
This should work.
Sampath Sridhar
10-Mar-13 23:39pm
View
The answer is correct.
Sampath Sridhar
8-Mar-13 1:26am
View
Sorry, my mistake.
Thanks for the update OriginalGriff :)
Sampath Sridhar
7-Mar-13 6:35am
View
There could be duplicate image in Debug folder.
Please check and delete that.
Otherwise check as follows:
<pre lang="c#"> p = Path.GetFullPath("..\..\Images\Question-icon.png")</pre>
Sampath Sridhar
7-Mar-13 5:11am
View
Modify the method as follows:
<pre lang="c#">
public DataTable PossibleAnswer() { if (ViewState["BeforePostBackAnswer"] == null) { dt.Columns.Add("Name"); DataColumn DocId = new DataColumn(); DocId.ColumnName = "ID"; DocId.DataType = System.Type.GetType("System.Int32"); DocId.AutoIncrement = true; DocId.AutoIncrementSeed = 1; DocId.AutoIncrementStep = 1; dt.Columns.Add(DocId); } else { dt = (DataTable)ViewState["BeforePostBackAnswer"]; } DataRow dr = dt.NewRow(); dr["Name"] = ""; dt.Rows.Add(dr); ViewState["BeforePostBackAnswer"] = dt; return dt; }
</pre>
This should work.
Show More