|
That's not standard functionality of VB6. I'd suggest you write this new functionality in .NET[^], and look for a way to "launch" it from your VB6-application
I are Troll
|
|
|
|
|
Hi all,
i have some things by which my application detect by antivirus.
List of actions are mention as follows that is detected by antivirus.
1. Key hook of keyboad.
2. Sending an email by my application.
3. Use Shell execute to run another application.
4. Command use to put an application in startUp.
...
please tell me how can i do all these work without detecting by antivirus.
Please help me for this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
"_$h@nky_" wrote: please tell me how can i do all these work without detecting by antivirus.
You can't. Such programs look for behavior, and those four points seem exactly like the behavior that a virus would display.
You're running a process that sets a hook, sends mails, starts by itself? Yeah, I'd expect Avast! to catch that if something comparable is on my system.
Ditch the hook, and let the application-setup (the installation-package) put you in the start-up group. That should lower the threat a bit
I are Troll
|
|
|
|
|
From what you described, your only option is to scrap your application. You're doing everything a virus would do. Keyboard hooking, impersonating the user and sending emails, shelling a new process and self-registering the app to put itself in startup. Yep - sounds like a virus to me.
|
|
|
|
|
Hi,
I created a setup of Outlook Shared Add-in. This setup is running on my all Windows vista System but not in Windows XP System.
i went to tools menu -> Trust center -> add-in then my in my add-in check box, Checked is not appear.
And the following error is showing
"Not loaded. A runtime error occured during loading of the COM Add-in"
I am using outlook 2007
and VS2005
If i m missing something please guide me.
Thanks a lot in advance
Regards
Dharmchand Dhingra
modified on Saturday, August 1, 2009 6:03 AM
|
|
|
|
|
Your add-in did something wrong when it was loaded. Your going to have to go back to the code and try and figure out what that was. With the information you provided - it's impossible to tell you what went wrong.
|
|
|
|
|
Hi Dave Kreskowiak,
Thakns a lot for quick reply.
I m just creating simple application in which i m showing message like msgbox("Startup completed"),
msgbox("Updated...") etc in default share add-in events.
When i build setup of this application and try to run in vista it is working successfully but when try to in XP then it is not loading and showing "Loading Error"
Please suggest
Thanks
Dharmchand Dhingra
|
|
|
|
|
I'm trying to implement something similar to this: Asynchronous socket communication[^]. However, I get an error "No connection could be made because the target machine actively refused it 127.0.0.1:4359" when EndConnect() is called.
Server
Public Sub Start()
Dim EP As New IPEndPoint(IPAddress.Any, Me.Port)
Dim listener As New Socket(EP.AddressFamily, SocketType.Stream, ProtocolType.Tcp)
listener.Bind(EP)
listener.Listen(10)
listener.BeginAccept(New AsyncCallback(AddressOf OnConnectRequest), listener)
End Sub
Private Sub OnConnectRequest(ByVal ar As IAsyncResult)
Dim listener As Socket = DirectCast(ar.AsyncState, Socket)
'(Adds connected client to a list)
listener.BeginAccept(New AsyncCallback(AddressOf OnConnectRequest), listener)
End Sub
Client
Public Sub Connect(ByVal port As Integer)
Dim sock As New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
Dim server As New IPEndPoint(IPAddress.Loopback, port)
sock.BeginConnect(server, New AsyncCallback(AddressOf OnConnect), sock)
End Sub
Private Sub OnConnect(ByVal ar As IAsyncResult)
Dim sock As Socket = DirectCast(ar.AsyncState, Socket)
sock.EndConnect(ar) 'Exception is thrown here
'(Handle connection)
End Sub
I ensure that the server is running before the client tries to connect and that the port is set correctly. I also don't think this is a firewall problem, as turning it off hasn't helped at all.
Can anyone help?
|
|
|
|
|
Nickr5 wrote: as turning it off hasn't helped at all
there's a flaw in that logic. When several problems exist, solving one of them may not show any noticeable difference. That does not mean it wasn't a problem, all it means is there is at least one other problem.
Maybe you have two firewalls running, say one that came with Windows, and one that is part of your Internet Security package?
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Thanks for the reply!
You were right, I did have two firewalls running. I had already tried allowing both my program and the port it was using through the Windows Firewall and forwarding the port through the router's firewall settings. Since then I've gone back and completely disabled the Windows Firewall and set the router's firewall to 'Minimum Security'. Unfortunately, I'm still getting the same exception and I haven't been able to find a third firewall
|
|
|
|
|
So you need to debug, here are three general-purpose suggestions:
1. improve the observability: add logging statements, use network observation tools, whatever;
2. formulate a hypothesis that fits the observations, validate it, act on it; and iterate this.
3. simplify the set-up until it starts working;
1 comes first, 2 and 3 can be useful in any order.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I've been using Code Project for advice and the like, but recently I have started a new blog. https://taylortutorials.wordpress.com[^]
I'd like to know your thoughts on whether I should put my articles on Code Project or maintain a blog.
Any advice would be appreciated.
My bletherings
https://taylortutorials.wordpress.com
My bletherings:
https://taylortutorials.wordpress.com
|
|
|
|
|
CP is more visible.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
You can link your Blog into CodeProject.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I have created a crystal report with my project. With my Cr.Report, PageHeader Section and Details Band I have some labels and database field no problem.
But the problem is on Report Footer, once I keep any field there it's not showing its value..But the same field if I keep in Details or Pageheader bands showing well.
So how to solve it? I need to display few fields at the bottom of report..
Any better ideas for me?
Thanks...
|
|
|
|
|
Is anything showing in the report footer?
Are you sure you don't have the report footer suppression turned on?
|
|
|
|
|
Place a piece of literal text in the footer to verify that the footer is being printed.
|
|
|
|
|
Hi Everyone,
Please i need help, i was trying to deploy my solution using click once technology and received the following error.
Error 1 Failed to connect to 'http://server/TestClickOnce/' with the following error: Unable to create the Web site 'http://server/TestClickOnce/'. The Web server does not appear to have FrontPage Server Extensions installed.
|
|
|
|
|
Well, might it be a good idea to first go and install FrontPage Server Extensions on the server ?
My advice is free, and you may get what you paid for.
|
|
|
|
|
thanks for the idea but i have already installed frontpageserver extension
|
|
|
|
|
There's a bunch of reasons why you'd get this error. I start by going down the list you find here[^].
|
|
|
|
|
What's the VB equivalent for the C code below? Do I need to use marshaling?
typedef struct
{
char tableName[256];
char variableName[256];
char value[256];
long sheet;
Enum_Data_Type varType;
} ITF_VariableType;
I'm trying to pass it as a parameter in a function, but it's not working.
The function is:
DllExport long WINAPI itf_TablesetReadVarList(void* buffer, ITF_VariableType* variableList, long totalVariablesToRead);
Thanks
|
|
|
|
|
It's not so mcuh as the "equivilent" code as how do you get the parameters acrossed to the function your calling in a manner that is acceptable. That's up to the function you're calling.
What do you have so far??
|
|
|
|
|
If you're just looking for a way to port this code to VB, then it's pretty straightforward:
Public Class ITF_VariableType
Public tableName As New String(New Char(255){})
Public variableName As New String(New Char(255){})
Public value As New String(New Char(255){})
Public sheet As Integer
Public varType As New Enum_Data_Type()
End Class
Note that 'struct' in C/C++ is nearly identical to 'class' in C++, so you don't need to convert to 'Structure' if you're just interested in porting code to VB. If your interested in interop, then it's a little trickier.
David Anton
http://www.tangiblesoftwaresolutions.com
Convert VB to C#, C++, or Java
Convert C# to VB, C++, or Java
Convert C++ to C#, VB, or Java
Convert Java to C#, C++, or VB
|
|
|
|
|
I successfully converted a project from VB6 to VS2003 as VS2003 is what I had originally. Everything was working as expected. I just got VS 2008 and upgraded (opened) the project and now I get an error with one of the DLLs I wrote (I have a couple and the others worked fine)
the error is type 'MyXXX.XXX' is not defined, so I go to add a reference and I get the error:
A Reference to 'C:\mypath\MyXXX.dll' could not be added. Could not load the type library, Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)
Googled it but did not seem to find much directly related
any idea where I should be looking? (or doing?)
Thanks in advance,
No-e
|
|
|
|