|
Nor vice versa!
A positive attitude may not solve every problem, but it will annoy enough people to be worth the effort.
|
|
|
|
|
Hi everybody !
I am looking for an automated tool or script that will take a huge Borland C++ buider project and convert it into Visual Studio .NET project. A full conversion is not necessary, rather a starting point for manual intervention.
So, after researches, i focused on the vcl conversion part to .Net, win api, so i want to know if is there a tool that can do this , at worst, just partially,
|
|
|
|
|
Please do not post the same question in multiple forums.
|
|
|
|
|
What does this have to do with the .NET Framework??
Oh, that's right, NOTHING!
|
|
|
|
|
crystal report viewr does not found...how can i solved..?
|
|
|
|
|
Really? How is anyone supposed to answer that "question"? You haven't provided any details at all about what error you're getting.
|
|
|
|
|
Install the Crystal Report Viewer?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Muthu Karthikeyan,
Hi Friends,
This is my first question i post to code project.I download lot of concepts through this site. Its help me good. I believe in this question i got some clarity its possible or not. Thank you.
|
|
|
|
|
|
Your question makes no sense at all. You never "integrate" anything into the .NET Framework.
The question should be specific about what it is you want to do with AutoCAD in your application.
|
|
|
|
|
|
Is it possible to make a game in vb.net?
If so can i get resources(tutorials,notes etc) on how to make one?
|
|
|
|
|
1. Yes.
2. By searching Google for samples and tutorials.
|
|
|
|
|
|
|
I think you've got crooked eyes, where do you see that i want someone to write the game for me?
|
|
|
|
|
Minhaaj Edoo wrote: Is it possible to make a game in vb.net?
If so can i get resources(tutorials,notes etc) on how to make one?
Let's look at your questions. The answer to both is really just "yes", although I did suggest that Google would help you to find tutorials for point 2. Have you actually tried looking for some for yourself?
Your question is so general (how to make a game in vb.net) that it is impossible to provide much more information. Point 2 of http://www.codeproject.com/Messages/3122367/How-to-get-an-answer-to-your-question.aspx[^] says "Be specific", something which your question is not.
|
|
|
|
|
Apparently you want someone to do your searching for you so here you go[^].
|
|
|
|
|
HI,
Every Body
This is My Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Sql;
using System.Data.SqlClient;
using Microsoft.SqlServer.Server;
using System.Data.SqlTypes;
using System.Text.RegularExpressions;
namespace trigger_test
{
public class trigger
{
public static void showinserted()
{
SqlTriggerContext triggContext = SqlContext.TriggerContext;
SqlConnection conn = new SqlConnection(" context connection =true ");
conn.Open();
SqlCommand sqlComm = conn.CreateCommand();
SqlPipe sqlP = SqlContext.Pipe;
SqlDataReader dr;
sqlComm.CommandText = "SELECT pub_id, pub_name from inserted";
dr = sqlComm.ExecuteReader();
while (dr.Read())
sqlP.Send((string)dr[0] + "," + (string)dr[1]);
}
}
}
========================================================
SQL SERVER
CREATE ASSEMBLY triggertest_2
FROM 'G:\Vijaya\trigger_test\trigger_test\bin\Debug\trigger_test.dll'
WITH PERMISSION_SET = SAFE
CREATE TRIGGER tri_Publishes_clrs
ON publishers_1
FOR INSERT
AS
EXTERNAL NAME triggertest_2.[trigger_test.trigger].showinserted
Create Table publishers_1
(
pub_id int,
pub_name nvarchar(50)
)
INSERT publishers_1
(pub_id, pub_name)
values (18,'Vijaya')
ERROR:- Msg 6522, Level 16, State 1, Procedure tri_Publishes_clrs, Line 1
A .NET Framework error occurred during execution of user-defined routine or aggregate "tri_Publishes_clrs":
System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.
System.InvalidCastException:
at CLR_Triggers.trigger.showinserted()
How to Solve this Error????
Help
Thanks In Advance....
|
|
|
|
|
Member 11161625 wrote: System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'. You cannot cast (i.e. tell the compiler to change) an integer to a string; you must use a conversion method to change it.
|
|
|
|
|
HI
Every Body,
This is my Class File Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using Microsoft.SqlServer.Server;
using System.Data.Sql;
using System.Data.SqlTypes;
using System.Xml;
using System.Text.RegularExpressions;
using System.Transactions;
namespace TrgMail
{
public class trgMail
{
[SqlTrigger(Name = @"EmailAudit", Target = "[dbo].[Users]", Event = "For Insert")]
public static void MailValid()
{
String userName;
String realName;
SqlCommand command;
SqlTriggerContext triggerContext = SqlContext.TriggerContext;
SqlPipe pipe = SqlContext.Pipe;
SqlDataReader reader;
switch (triggerContext.TriggerAction)
{
case TriggerAction.Insert:
using (SqlConnection connection = new SqlConnection(@"context connection=true"))
{
connection.Open();
command = new SqlCommand(@"Select *from Inserted;",connection);
reader = command.ExecuteReader();
reader.Read();
userName = (string)reader[0];
realName = (string)reader[1];
reader.Close();
if (IsValidEMailAddress(userName))
{
command = new SqlCommand(@"Insert[dbo].[UserNameAudit]Values('" + userName + @"','" + realName + @"');", connection);
pipe.Send(command.CommandText);
command.ExecuteNonQuery();
pipe.Send("You inserted:" + userName);
}
else
{
try
{
pipe.Send("Invalid EmailID");
Transaction trans = Transaction.Current;
trans.Rollback();
}
catch (SqlException ex)
{
}
}
}
break;
}
}
public static bool IsValidEMailAddress(string email)
{
return Regex.IsMatch(email,@"^([\w-]+\.)*?[\w-]+@[\w-]+\.([\w-]+\.)*?[\w]+$");
}
}
}
===========================================================================================
SQL SERVER 2008
sp_configure CLR_Enabled,1
Go
Reconfigure
Go
alter Database Vijaya set Trustworthy on
Create Assembly ValidateEmailAssemblies
From'G:\Vijaya\SqlServerProject2\SqlServerProject2\bin\Debug\SqlServerProject2.dll'
with Permission_set=Unsafe
Create Table Users2
(
UserName nvarchar(200) Not Null,
RealName nvarchar(200)Not Null
)
Create Table UserNameAudit2
(
UserName nvarchar(200)Not Null,
RealName nvarchar(200)Not Null
)
Create Trigger EmailAudit1
on Users2 for Insert
As External Name ValidateEmailAssemblies.trgMail.MailValid
GO
ERROR:- Msg 6505, Level 16, State 2, Procedure EmailAudit1, Line 1
Could not find Type 'trgMail' in assembly 'SqlServerProject2'.
Please Help???
How to solve this Problem???
Thanks In Advance...
|
|
|
|
|
You have different namespaces in there. In your assembly, it's TrgMail but you have used ValidateEmailAssemblies in your stored procedure.
|
|
|
|
|
Hello,
Every Body,
I am getting the Following ERROR:-
Msg 6505, Level 16, State 2, Procedure EmailAudit, Line 1
Could not find Type 'trgMail' in assembly 'ClassLibrary1'.
How to solve this Error????
Thanks
In Advance...
|
|
|
|
|
As you haven't posted any code from trgMail, or from the code that's attempting to call this, we can only offer a guess. At a guess, I'd say that trgMail is not exposed as public (or protected if you're inheriting). Alternatively, it could be that there is no trgMail at all.
|
|
|
|
|
Hello,
Every Body,
I am getting an error:-CREATE ASSEMBLY for assembly 'test3.5' failed because assembly 'test3.5' failed verification. Check if the referenced assemblies are up-to-date and trusted (for external_access or unsafe) to execute in the database. CLR Verifier error messages if any will follow this message [ : Test.Test::my_func][mdToken=0x6000001][offset 0x00000000] Unable to resolve token.
How to solve this ERROR????
Thanks
IN ADVANCE....
|
|
|
|