127 questions
1
vote
1
answer
799
views
How to fix bug of JFileChooser or avoid the bug preventing JFC to show shortcut (lnk) folders
Using NetBeans(java) I created a JDialog with a JFileChooser and when I try to open a lnk folder using the ComboBox (in other ways works fine) an exception is thrown and the folder is not opened.
I ...
0
votes
1
answer
2k
views
C++/CLI wrapper LNK2028 and LNK2019 error
I need following function (from C++ dll) available in C++/CLI
extern "C" _declspec(dllexport) void __stdcall DestroyInstance(CKeyManagerServerApp *ptr);
My try:
[DllImport("KeyManagerServer.dll", ...
-3
votes
2
answers
2k
views
error LNK1152: cannot resolve one or more undecorated symbols. How to fix?
The problem with the problem is, I don't know where the problem exists, so I can't paste all my source codes here.
The error is a LNK error, LNK 1152 to be exact.
I get 3 warnings brought with it:
...
2
votes
2
answers
3k
views
VB.NET / C# code to access target path of link (lnk) files produces some wrong paths
I found this code:
Public Shared Function GetLnkTarget(ByVal lnkPath As String) As String
Dim shl = New Shell32.Shell()
' Move this to class scope
lnkPath = System.IO.Path.GetFullPath(...
5
votes
3
answers
2k
views
Accessing target path from a shortcut file on a 64 bit system using 32 bit application
I'm trying to access the target path from a shortcut(.lnk) file on a 64bit machine using my 32 bit application. To get the path, I was using the following code.
WshShell shell = new WshShell();
...
0
votes
3
answers
72
views
How to tell that the Setup has an uninstaller?
I have made a small application without setup. Just copy from A to B. Now I wanted to copy also a shortcut (lnk) file in the Windows system to have the application visible as uninstall-able.
But when ...
1
vote
3
answers
2k
views
C++, good old LNK1169 (and LNK2005) errors
I have 4 files, 2 headers and 2 cpp files.
Header file one:
#ifndef complex_2
#define complex_2
#include<iostream>
#include<cmath>
using namespace std;
namespace comp
{
class ...
1
vote
2
answers
44k
views
c++ LNK2001: unresolved external symbol problem
Greetings.
I have searched for a solution, but I think this problem is personal code specific, hence my posting here.
I'll get straight to the point.
In my main I have two objects.
Computer *...
3
votes
4
answers
7k
views
General approach to reading lnk files
Several frameworks and languages seem to have lnk file parsers (C#, Java, Python, certainly countless others), to get to their targets, properties, etc. I'd like to know what is the general approach ...
3
votes
1
answer
797
views
Java parser for Windows shortcut (.lnk) created by cygwin
Following a previous discussion on lnk files parsing in java ( Windows shortcut (.lnk) parser in Java? ).
I've tested all solutions proposed.
But no one works with my lnk files created by cygwin,...
1
vote
1
answer
1k
views
Is there a way to resolve a .lnk target that works for links that end up in c:\windows\installer?
The usual way to resolve lnk involve using WShell.WshShortcut or IShellLink that way :
var WshShell = WScript.CreateObject("WScript.Shell");
var oShellLink = WshShell.CreateShortcut(strDesktop + "\\...
0
votes
1
answer
815
views
Expression Web: Shortcut doesn't point to an exe file, but I want to use it to edit
Problem: I have to support users who need to edit web pages. Some of these web pages exist only as textarea controls. Fortunately, there is a firefox plugin that allows the user to open the textarea ...
4
votes
5
answers
2k
views
Launching Shell Links (LNKs) from WOW64
Our 32-Bit application launches Windows LNK files (Shell Links) via ShellExecute. When it tries to "launch" a link to a 64-Bit binary (such as the "Internet Explorer (64-Bit)" shortcut in Start Menu) ...
27
votes
10
answers
29k
views
Windows shortcut (.lnk) parser in Java?
I'm currently using Win32ShellFolderManager2 and ShellFolder.getLinkLocation to resolve windows shortcuts in Java. Unfortunately, if the Java program is running as a service under Vista, ...